Design: Input field's active state

How do I add active state to an input field in WeWeb?

Hello,

It’s currently not possible, the new state feature are in test in our side. It should be release soon

2 Likes

This is now possible with custom state logic and focus/blur workflow triggers

hey guys, i have a variable boolean called inputFocused default is false. then workflow for on focus, turn change the var to true to which then changes the state to focused and allows the style changes needed.

a second workflow, on blur resets the var to false. all good so far.

the problem is that if i have that on multiple inputs on a page, when one is focused, they are ALL focused. i’m not a programmer and im new to variables so any ideas on how to solve this so it only works on one input at a time?

hope that makes sense, thanks for any advice here.

Good morning everyone, now we can do this through a state, without the need for a variable, I’ll leave a video below showing

@GeovanyNocodeBR really helpful thanks! Doesnt seem to work on dropdowns though. Any idea for that as there are no “on focus” or “on blur” triggers in the workflow builder?

Hi,
this feature is only available on some inputs and buttons. If you think we missed one, please add a request here

1 Like

Hi @GeovanyNocodeBR

Why is your video no longer playable?
I would like to see your solution

Best regards