I have created an example piece of java coding that I would like to add to the input component;
I think I will be creating a new input field type to get this working.
In below field, if you type a zero (0) the field colours red through the onchange.
If you type a different value or leave it empty, the field background color stays white.
Click here to test it