Skip to main content
Participant
February 23, 2024
Question

How do I create a message that will pop up if a value does not equal another field?

  • February 23, 2024
  • 1 reply
  • 900 views

I have a form that has 5 numeric fields. I want to create a text box that will populate with an error message if the sum of Fields 1 through 4 do not equal field 5. 

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
February 23, 2024

When do you want this message to appear? When field 5 is edited? When fields 1-4 are edited? Something else?

Participant
February 23, 2024

Field 5 is entered 1st - it is the total. Fields 1-4 are the breakout, there for should always equal Field 5. I guess once Field 1 is edited would the the time for the message to pop up. 

try67
Community Expert
Community Expert
February 23, 2024

But then it would appear for each field the user fills in... Imagine they enter "100" into field 5, then "10" into field 1, and boom, the error message appears. Then they enter "20" into field 2, and then the same happens. It will be very annoying for them if you do it like that. Alternatively, the error message can appear only when the last field is filled-in (field 4), but then if they enter just 10, 20 and 30 the message will never appear, since they didn't fill in the last field. As you can see, this is tricky to implement correctly...