Dynamically change colour of field in the form widget

KaranvirS
Tera Contributor

Hi all,

 

I have a requirement to dynamically change the colour of a field in the form widget based on the field's value. This works fine in the platform/backend as a style is defined for the field. 

Is there a way for the widget to inherit the styles associated with the table in question?

 

Thanks in advance!

Karanvir

1 REPLY 1

Ankur Bawiskar
Tera Patron
Tera Patron

@KaranvirS 

field style won't work in portal.

you will have to customize that form widget

check this for list and add something similar for form

How to set custom colors to title columns in list page of Service Portal

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader