How to create a form field that turns different colors depending on its value?
For example:
If the value of the field is between 8-10: turn the field red.
If the value of the field is between 6-10: turn the field orange.
If the value of the field is between 4-6: turn the field yellow.
If the value of the field is between 0-4: turn the field green.
Also I would like to be able to change the fill of the field as well as the color of the text.
(for example a red fill with white text, but a yellow fill with black text) so that everything is readable.
