Copy link to clipboard
Copied
Hello
I have a simple Yes or No dropdown list, I want the color of the filed to change to red if no selected. Is there a simple code for that
Thanks for the help
If you want to change the color of the text when "No" is selected, take a look at this post:
Copy link to clipboard
Copied
Use this as validate script of that dropdown:
event.target.fillColor = event.value == "No" ? color.red : color.white;
Copy link to clipboard
Copied
Copy link to clipboard
Copied
You can't change the color of a specific item in the drop-down, if that's what you mean.
Copy link to clipboard
Copied
If you want to change the color of the text when "No" is selected, take a look at this post:
Copy link to clipboard
Copied
This works nicely
thanks for the help