Background Color on a choice list

Sam Ogden
Tera Guru

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:

find_real_file.png

On the list view this is presenting a coloured dot which is what I want:

find_real_file.png

However on the actual form the background colour does not change:

find_real_file.png

Is there a way to make the background colour also change on the form?

Thanks

1 ACCEPTED SOLUTION

Jaspal Singh
Mega Patron
Mega Patron

Hi Sam,



You can use below script


find_real_file.png



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.


View solution in original post

10 REPLIES 10

Jaspal Singh
Mega Patron
Mega Patron

Hi Sam,



You can use below script


find_real_file.png



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.


Hi Jaspal,



just tried the above and it has worked a treat.



Thaks


Hello Jaspal,



I tried the script you shared for incident state field.


However, the color is changed for the entire choice list. Here's a screenshot example:


find_real_file.png


Is there a way to just highlight the field value and not the choice list ?



Thanks & Regards,


Neha


It is not working in portal.