Css class change font color based on rule

  • 1 April 2024
  • 2 replies

Badge +4

Hello everyone,

I have an issue, and I don’t know why it is not working.

just for clarifying, my purpose is to put a rule if there is a number will be took it from a variable is less than 0 I want the number to be colored in red.

what I did is add css class in the style embeded then add a rule in the rules but it doesn’t work


2 replies

Userlevel 5
Badge +13

Below are the steps to do this using a form variable and a rule.

  1. Create a form variable.
      -- Name = intAging
      -- Type = Interger
      -- Value = convertToNumber(Form.Aging 1 to 30)
  2. Create a form rule.
      -- Name = Aging Negative
      -- If intAging “Less than” 0
      -- Then “Aging 1 to 30” “Control input color” #FF0000
      -- Else “Aging 1 to 30” “Control input color” #000000



Userlevel 5
Badge +20

Hi @wejdan 
Did this response answer your question?