I have a ConfiForms Field Definition with fieldName=PROJECTSTATUS with dropdown options such as "COMPLETE", "ABORTED","REJECTED".
I've tried to use ConfiForms Rules for Fields (CSS) as shown below, but it doesn't appear to work on drop downs. I tried the same method for Field Type = Text, and that did work.
Is there a way to customize colors for different selections in Field Type=Drop Down
Hi @Marina H
The ConfiForms Rules for Fields (CSS) macro is to be used with "views macros", not field definitions https://wiki.vertuna.com/spaces/CONFIFORMS/pages/49415341/ConfiForms+app+detailed+view+over+the+plugin+macros
There is a way to apply some custom conditional CSS on the field itself, via https://wiki.vertuna.com/spaces/CONFIFORMS/pages/21234020/ConfiForms+Field+Definition+Rules#ConfiFormsFieldDefinitionRules-ApplyCSSonafield
But it would not work for the "options" in a dropdown, as only the dropdown itself (in this specific case) will be styled
If you want to style it in a view (and that what you probably want to do) then it will work with any field - how is your PROJECTSTATE field is configured? Is "ABORTED" an id or a label?
If that is a label then the condition would be something like
PROJECTSTATE.label:ABORTED
(everything is case sensitive)
Alex
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.