Tech Support > Microsoft Windows > Windows CRM > coloring picklist options
coloring picklist options
Posted by 4crm4 on June 24th, 2008


Hi,
I saw in stunnware jscript code for coloring the options of a picklist, but
can I maintain the color after the selection so it stays on the form after
the
pickup? (The CRM replaces the colors with background blue and white text)
Thanks.

//TODO: Replace <name of your picklist field> with the schema name of the
picklist in question.
var list = crmForm.all.<name of your picklist field>;

//using the first option here, you need to find the one you need.
var option = list.options[0];

//Set the background color to red.
option.style.backgroundColor = "#FF0000";

//Set the text color to white.
option.style.color = "#FFFFFF";



Posted by 4crm4 on June 25th, 2008


nevermind, I solved it by changing the location on the form (or change
setfocus).

Thanks for stunnware

"4crm4" wrote:


Similar Posts