- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2022 01:47 PM
Hello,
I've added a field called "Trending" to the Status Reports tab - Overall Status sub tab on the Project form. I've copied the field style exactly as it is for the Overall Health field style. The colours are working fine for Overall Health - Green, Red, Yellow shows the correct background colour. But for my added Trending field, no colours appear when selecting Green, Red or Yellow.
I was reading documentation that says "The value only affects list field styles. To apply field styles on both lists and forms, leave this field blank". I removed the contents of the Value field in the Style for each of red, green and yellow and now all the selections of Red, Green and Yellow show up as red.
No idea what to do to fix this when I'm copying exactly as the working configuration for the Overall Health style configuration, at least as far as I can see.
Help please!
Thanks,
Trish
Solved! Go to Solution.
- Labels:
-
User Interface (UI)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2022 11:04 AM
Our ServiceNow rep supplied the answer to this, so I'll share it here for other people who might run into this.
There is a client script that makes the style colours work for the Overall Health field. I had to copy that script (Insert and Stay) and replace the values with the ones that applied for the Trending field I'd created.
- On the project form, click on the Status Report tab
- Right-click on the grey header, click on Configure --> Client Scripts
- Open the script for Overall Status
- From the Additional Actions menu at top left (hamburger, pancake), click on Insert and Stay
- I replaced the information in the Name field with Trending and the Field name field with Trending and then clicked Update.
Then I could see a new Client Script called Trending. I went back to my form and the background colours now work as desired - green background for green and so on.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2022 11:04 AM
Our ServiceNow rep supplied the answer to this, so I'll share it here for other people who might run into this.
There is a client script that makes the style colours work for the Overall Health field. I had to copy that script (Insert and Stay) and replace the values with the ones that applied for the Trending field I'd created.
- On the project form, click on the Status Report tab
- Right-click on the grey header, click on Configure --> Client Scripts
- Open the script for Overall Status
- From the Additional Actions menu at top left (hamburger, pancake), click on Insert and Stay
- I replaced the information in the Name field with Trending and the Field name field with Trending and then clicked Update.
Then I could see a new Client Script called Trending. I went back to my form and the background colours now work as desired - green background for green and so on.