What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    Validating fields based on the value of another field

    Asked by davidgrayvideos on September 05, 2016 at 02:36 PM

    Is it possible to create two text input boxes and have the user type the same info into the two boxes and have this data validated?

    e.g.

    I want a user to choose their own password and type it into box one and then confirm the password by typing it again in the second box. But I need jot form to validate that both the inputs match. (exactly like the email validation but with a text box instead of an email box).

    Is this possible?

    field validation create confirm validate same info
  • Profile Image
    JotForm Support

    Answered by Jan on September 05, 2016 at 04:07 PM

    It is possible to validate a form field by using conditions. Please check this demo form: https://form.jotform.me/62486447598474. Feel free to clone it if you like.

    Here's a guide how I created this demo form:

    1. I inserted 2 text box fields and a text fields.

    2. Set a condition wherein if the Validation Name is equal to the Name field, then the text field "Validated" will appear. I used the Show/Hide Field condition.

    Here's the result:

    Related guide: How-to-Show-or-Hide-Fields-Base-on-User-s-Answer

    Hope that helps. Thank you.