Text coloring in form fields

0
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?
asked
1 answers
0

Hello Martin,

Please put element tag before the class name

ex: p.text-info { //your code }

answered