Conditional and "if function"

Hi,

In my application, I want the font color to turn red when the number entered in input 2 is superior to 80% of the number entered in input 1. How can I proceeed?

Thank you,

L

Hi, you could set a Conditional in your element.
Conditional:
When input 1’s value * 0.8 < input 2’s value
→ Font color (#ff0000)

another way to do it:
when input 2’s value / 0.8 >= input 1’s value

1 Like

Hi ric,

Thank you for your answer, but I don’t have the option of doing *0.8 or /0.8 when I config the conditional. Here an example.

Your input’s content type must be set to NUMBER.

1 Like

Indeed, I just realize.

Thanks a lot guys!

1 Like