Input color onchange

How do I change the background color of a component when its value changed? for example, I want to change the background color of an input field if it has changed. I can trigger a query java script on the change event but I am not sure how to change the color of this component with this javascript.

thank you,

Olivier

Hey @ofedrigo,

You can dynamically set a color in the styles input of the component

Does that work for you?

oh right! so what I ended up to do is to create a temporary_state that will be set to a different color and have refer to it for the background {{temporary_state.value}}

Thank you!

1 Like