- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-07-2017 03:14 AM
Hi All,
I have just added a choice list to our incident form with the choice options of Red, Amber & green. I want the background colour of the field to match these descriptions. I've added in 3 styles on this field:
On the list view this is presenting a coloured dot which is what I want:
However on the actual form the background colour does not change:
Is there a way to make the background colour also change on the form?
Thanks
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-07-2017 03:32 AM
Hi Sam,
You can use below script
only thing is to have the field name changed as desired & additional else condition added if required. Also, in place of riskimpact == '1' you can have your choice name added as riskimpact == 'amber' etc.
Thanks,
Jaspal Singh
Hit Like or Correct on the impact of response.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-07-2017 03:32 AM
Hi Sam,
You can use below script
only thing is to have the field name changed as desired & additional else condition added if required. Also, in place of riskimpact == '1' you can have your choice name added as riskimpact == 'amber' etc.
Thanks,
Jaspal Singh
Hit Like or Correct on the impact of response.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-07-2017 04:21 AM
Hi Jaspal,
just tried the above and it has worked a treat.
Thaks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-31-2017 12:33 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-31-2017 03:19 AM
Hi Neha,
Probably Is it possible to set the background-color of a specific option in a choice list? would help you with the same.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-01-2022 04:18 AM
It is not working in portal.