Hello to all,
Some one knows how to change the input or row color in an insert form depending of the value in the input field. For example; if in a select field if the value selected is “No” that field switch to red or the row change to red color.
Thanks in adanced
You want to use the Dynamic Attribute --> Class Toggle applied to what element you want to change.
I tried but not works, if I do it in the row where the select value is located place the row in red doesn’t matter the value that is selected, even I I place a value=another value that is not in the select input. If I do it in the select input field, doesn’t do anything. I will place an screen shot
Finally what I want is to depending of the value selected in the insert form make some alert, can be with a color or with a message. Any Idea?
Please share code. What brad has suggested is the easiest way to do this in Wappler.
Both conditions on the outermost div are incorrect.
It should be something like;
inp_preg1.value == 'NO'
And similar for other.
it works, thankssss