Reputation: 781
On a basic (custom) form, is there any way I can change the color of a label depending on the value of the field?
We have an Inactive box near the top of the form and I'd like to be able to make it red (and bold, and larger font) when it's checked. I believe I could do it by dynamically changing the form, but that's a lot of overhead and not a great user experience.
Upvotes: 0
Views: 764
Reputation: 5256
Another approach might be to add another field of type inline html or rich text, and update that field with a client script or user event based on the value of the inactive field.
Upvotes: 1
Reputation: 8847
DOM manipulation is discouraged and not supported by NetSuite, but it's your only option. There are no native APIs for changing label colors.
Upvotes: 1