Validation - how to check if 2 fields are equal

  • Profile Image
    Filip
    Asked on January 24, 2012 at 11:48 AM

    On form submit I need to check if 2 form fields contain the same value e.g. "email" & "confirm email". I can't see such option in form builder.

    If it's not possible to achieve with current version can you tell me if Jotform uses internally any javascript validation library? I could change the generated form code to use it. I'm thinking about smth like that:

    <input type="email" name="q6_confirmYour" class="form-textbox validate[Email, SameAs[email]]" (...)>

  • Profile Image
    abajan
    Answered on March 01, 2012 at 09:18 PM

    @Filip

    You'll be pleased to know that there's now an option available in the form builder to add a "Confirm Email" field. Please see emrew86's post here.