Change property when a number doesn't match a dropdown value

I am currently working on an experience where users can select a number from a dropdown, and that number equals the number of credits they need to submit a form. When the user selects a number higher than their available credits I want it to turn red.

Right now I have added the formula “When a user’s credits are less than the dropdown’s value” and it has an error. I am not sure what I am doing wrong.

Any help is appreciated!

Hi there, @crown… try adding the :converted to number operator to the end of the expression. Right now, you are trying to see if the user’s credits (a number) is less than a value that is evaluated as text, and that obviously doesn’t work. So, if you convert the text value to a number, I believe you should be good to go.

Hope this helps.

Best…
Mike

2 Likes

That did it, thank you so much!

1 Like