Quantcast
Viewing all articles
Browse latest Browse all 1455

Sum of 2 fields must equal the value of a 3rd field

Replies: 0

Is this possible?

Field1 is an input field where user has entered 5

Fields 2 & 3 are required input fields whose total must equal the value in field1 (5 in this example).

If sum of fields 2 & 3 is not equal to field1, an error is returned to the user to correct their inputs.

Alternately, I could make field2 an input field, field3 would be a calculation of (field1 – field2) to ensure the total is correct but I would still need to ensure that field2 is <= field1. Can that be done? Throw an error is the user inputs a value in field2 that exceeds the value of field1.

Thank you.


Viewing all articles
Browse latest Browse all 1455

Trending Articles