Changing border color of a separate text field
I need to change the border color of a text field from black to red based on information from two other text fields. Let's say I have X and Y. X is the field on which we want to change the border color based on the Y value. But this Javascript needs to be added to the Custom Calculation Script of Y.
If X is greater than 1 and Y is greater than X, then change the border color of X to red else black.
How can I do this?
