Published on
Sometimes you need to check that two form inputs have the same values entered in them. Most often this is to confirm that a password or an email has been entered correctly.
You can do this very simply by adding an entry to the Field Class box in the second input element
validate['confirm[input_name_1]']
Replace 'input_name_1' with the name of the first input element.
See this forum post for an example.
In ChronoForms v3.2 there is a validate-confirmation option on the form Validation tab.
To validate that two inputs have the same value, enter the first input name to validate then '=' then the second input name e.g. password=confirm_password
Comments: