Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Can I Use ConfiForms Rules for Fields (CSS) with Field Type = Drop Down?

Marina H
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 23, 2025

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 

image.png

1 answer

0 votes
Alex Medved _ConfiForms_
Community Champion
April 23, 2025

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events