Summing variables for form validation

yaronb shared this question 5 years ago

Hi. Im new to justinmind and have been struggling with doing something that I think would be somewhat basic. I have a form and on the submit button I would like to validate that the fields have been filled out correctly. To do that I have created a separate Validate variable for each field that gets set to 1 if it is validated correctly and to 0 if it does not. On the Submit button I am trying to add up the validate variables to check the sum.

When I write the expression using the visual editor it just does not seem to work and is impossible to even look at the thing given all the random sets of parentheses.

Is there a better to sum these variables? Or a better way to approach form validation in general?