Text coloring in form fields

I have a dynamic list of input fields and I’d like to color the input field label according to a value within the data set. Dynamic classes should to the trick, I’m using the following XPath for that:   if(parseInteger(formatDateTimeUTC($currentObject/Date,'u')) <= 5) then 'text-info' else 'text-warning'   As you can see, I’d like to color according to weekday. The CSS class is applied correctly, however the color is superseeded by $form-label-color (even though text-warning it is marked as !important). Any ideas?
0 answers