You are viewing limited content. For full access, please sign in.

Question

Question

Change Field Input Color Based On Value

asked on March 8, 2024

Hello, I am trying to figure out how to change the color of a field based on that fields value. For example my Total Field has a calculation of Field 1 + Field 2. If the Total Field is greater than 2.5 I want the Total Field to turn blue. If it less than 2.5 I want the Total Field to turn yellow. Is there a way to accomplish this? I am using the new forms designer.

Screenshot 2024-03-08 144801.png
0 0

Answer

SELECTED ANSWER
replied on March 10, 2024

That’s Version 11 Update 3, there have been two major releases since then (Update 4 which is 11.0.2307 and Update 5 which is 11.0.2311).  I think you can make this work on your version with Javascript, but upgrading will open the door for field rules like Blake suggested.

1 0

Replies

replied on March 8, 2024

What version of Forms are you using? In Forms 11 Update 4 (11.0.2307.40547) they added the ability to assign CSS classes using field rules, so it makes it really easy to do what you are asking for.

1 0
replied on March 8, 2024

I am using version 11.0.2212.30987

0 0
SELECTED ANSWER
replied on March 10, 2024

That’s Version 11 Update 3, there have been two major releases since then (Update 4 which is 11.0.2307 and Update 5 which is 11.0.2311).  I think you can make this work on your version with Javascript, but upgrading will open the door for field rules like Blake suggested.

1 0
You are not allowed to follow up in this post.

Sign in to reply to this post.