SelectBox Option Tag Value
I'm trying to add colors in the ComboBox Options, but the values in the Workflow Designers are not honored in HTML5 and connot be controlled, in the Desktop.css file.
I'm adding the a new Value "Red" in the ComboBox
_img_ alt="User-added image" src="https://latitudegeo--c.na53.content.force.com/servlet/rtaImage?eid=906f2000000fyBQ&feoid=Body&refid=0EMf2000000kCyU"_/_img_
But, when using the Element Inspector in Firefox, the value attribute for each option is not present.
_img_ alt="User-added image" src="https://latitudegeo--c.na53.content.force.com/servlet/rtaImage?eid=906f2000000fyBQ&feoid=Body&refid=0EMf2000000kCyZ"_/_img_
It should be <option val="Red">Red</option>
Is there a workaround for this? I know I could use the Custom Module and insert a script for doing the color switch, but that would be the long way of doing it. It would be so much easier doing the color assignments in the Style Sheet, with the Value attribute.
0
-
I found a solution, using the Stlysheet: .workflow-form select[title~=SelectColor] option:nth-child(1){ /* First Option Color Assign*/ color: red; } .workflow-form select[title~=SelectColor] option:nth-child(2){ /* Second Option Color Assign*/ color: green; } .workflow-form select[title~=SelectColor] option:nth-child(3){ /* Third Option Color Assign*/ color: green; }0
Please sign in to leave a comment.
Comments
1 comment