Change color of each choices in a choice field dropdown
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2017 12:11 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2017 12:22 AM
Hello Divya,
You may find the below thread helpful.
Is it possible to set the background-color of a specific option in a choice list?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2017 01:27 AM
Hi Pradeep,
Thanks for the response. but its not working.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2017 12:24 AM
Hi Divya,
Check the below thread.
Re: Is it possible to set the background-color of a specific option in a choice list?
Thanks,
Harshvardhan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2019 11:16 PM
Hi,
Please find the below script to change the choice option background and foreground colors:
Syntax: g_form.getOption("fieldname", "option_value").style.color = "color value";
Example:
g_form.getOption("colors", "red").style.backgroundColor = "yellow";
g_form.getOption("colors", "red").style.color = "red";
Thanks,
Ravinder