Creating an error message if two entries are the same

  • mreade
    Asked on February 23, 2016 at 4: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

     

     

     

  • Ashwin JotForm Support
    Replied 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!

  • mreade
    Replied on February 24, 2016 at 5: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
    ...
  • BJoanna
    Replied 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.

    Creating an error message if two entries are the same Image 1 Screenshot 20

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

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