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

    Creating an error message if two entries are the same

    Asked by mreade on February 23, 2016 at 04:30 PM

    Hello

    https://form.jotformeu.com/60353612863353

    In Section 1 applicants are asked to select a faculty

    In Section 2 applicants are asked to select the faculty of their project collaborator

    I need people to collaborate with people from different faculties.  Is it possible to create a rule whereby an error message will be generated if the same faculties are selected?

    Thanks

    Michael

     

     

     

    message same creating two entries
  • Profile Image
    JotForm Support

    Answered by ashwin_d on February 23, 2016 at 10:31 PM

    Hello Michael,

    "Is it possible to create a rule whereby an error message will be generated if the same faculties are selected?"

    If I understand your requirement correctly, you do not want multiple users to select the same faculty. Is that correct?

    Yes it is possible to achieve your requirement by making the "First Applicant Faculty" as "Unique Question". Once you make it a unique question, users will not be able to select the same faculty if some other users have already selected it. You may like to take a look at the following guide for more information on "Unique Questions":  http://www.jotform.com/help/223-How-to-set-Form-Limits-Based-on-a-Unique-Question 

    Hope this helps.

    Do get back to us if you have any questions.

    Thank you!

  • Profile Image

    Answered by mreade on February 24, 2016 at 05:45 AM
    Hello
    I don't think you have understood me but maybe I haven’t explained it very well.
    This is the situation:
    I ask academics to apply for grant funding via this form:
    https://form.jotformeu.com/60353612863353
    In Section 1 applicants are asked to select their faculty.
    It is a condition of our funding scheme that each applicant has a collaborator. This person must be based in a faculty that is different from the academic that is submitting the application. In Section 2 the person completing the form is asked to select their collaborators faculty.
    Is it possible to create a rule whereby an error message will be generated if the person completing the form selects the same faculty in Section 2 as the one he/she has selected in Section1?
    Thanks
    Michael Reade
    Coordinator - UCL Grand Challenges (Human Wellbeing)
    Office of the Vice-Provost (Research) | University College London | 2 Taviton Street | London | WC1H 0BT
    Tel: ++ 44 (0)20 7679 8713 (internal 28713)
    Email: m.reade@ucl.ac.uk
    www.ucl.ac.uk/grand-challenges
    ...
  • Profile Image
    JotForm Support

    Answered by BJoanna on February 24, 2016 at 10:01 AM

    If I understood you correctly, you want to prevent your users to enter same data in two different field. For example, you do not want that Full Name field is same in Section 1 and Section 2. Is that correct?

    In this case it is not possibles to show regular error message, but you can add text field to your form where you would write your error message, and set conditional logic to show that message if values entered in mentioned fields are same. With conditional logic you can also hide Submit button, so that your users can not submit your form, if values are the same. 

    More about conditional logic you can find inside of this guides:

    http://www.jotform.com/help/57-Smart-Forms-Using-Conditional-Logic 

    http://www.jotform.com/help/316-How-to-show-or-hide-a-field-in-the-form-based-on-the-other-field-input-or-selection 

    You would need to set your conditions similar to this.

    Here is my demo form: https://form.jotform.com/60544237167961 

    Hope this will help. Let us know if you need further assistance.