UI Policy & field color
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-28-2015 07:33 AM
So, this is an issue I'm facing at the moment:
I like the condition formatter of UI Policy, but instead of making a field mandatory or read only, I just want to set a background color for those fields.
Would this be possible in an easy way?
Desired result:
Both background colors: orange
- Labels:
-
User Interface (UI)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-28-2015 08:24 AM
I'm not sure if you can alter style from UI Policy. If so, it would be done in the "Execute if True" script if you have Run Scripts checked.
More than likely though, you'll need to Field Styles. I like Field Styles better because they can work on both form and list view.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-31-2015 01:11 AM
It is recommended to use field styles over DOM manipulation, which is more of a last restort type of mechanism when there is no other way.
ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-09-2017 01:50 PM