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

    How I can prevent two spaces are filled with the same name on the form?

    Asked by GDISuperKids on July 08, 2016 at 12:56 PM

    I have a registration form that I made but I will not allow the name of the mother or father is the same as the guardian of the child. Is there any way to prevent two fields are filled with the same name? Thank you very much for the answers.

    Page URL:
    https://form.jotformz.com/61885391962671

    name same how filled
  • Profile Image
    JotForm Support

    Answered by Mike_G on July 08, 2016 at 03:23 PM

    Yes, there is, with the help of conditions. 

    Here's a working form that I have created as example: https://form.jotform.com/61895141777972

    I have checked your form and notice that you are using the Full Name field for Father's Name, Mother's name, and Guardian Names on your form.

    Since there is no way we can compare the value of it through conditions.

    We need to pass it to a regular textbox field first and we are going to do this for all of the Full Name fields. On the image below notice that I have hidden the additional textbox fields so it will not show on the form.

    Once you've done that, create the conditions that will pass the value of Full Name fields to its corresponding textbox counterpart.

     

    Here's how it works suppose the textbox fields are not hidden.

    Next, create the custom warning message that will be shown if the father and/or mother's name match or is the same as any of the guardian names.

    Then finally, create a condition that will show the warning message and hide the submit button if any of the guardian names match either the father's name or mother's name.

    That's it! You can apply the same to your form. I would suggest you clone the form I have used in my example so you can explore it. And, if you have questions with any of the instructions given above, please feel free to get back to us so we can further help you.

    Thank  you.