How can I conditionally prevent users from submitting the form based on another input

  • DestinationSouthernHighlands
    Asked on February 1, 2018 at 8:16 PM

    Hi 

    Can you please advise if there is any way we can include a required field on a form that can only be completed if the correct 'word' or 'number' is entered.

    We are creating a competition form and need those entering to be able to a 'word' or 'number' that guarantee purchase and thus allow them to enter the competition.

    thanks Trish

  • John_Benson
    Replied on February 1, 2018 at 9:03 PM

    Hello Trish,

    Please check my demo form: https://form.jotform.com/80317519059964

    Is that what you're trying to achieve? If yes, I just hide the Submit button and Text field. If the condition is met, they will appear. Here's a guide to the condition I used: https://www.jotform.com/help/316-How-to-Show-or-Hide-Fields-Base-on-User-s-Answer

    You can also clone my demo form so you can check or investigate it further by following this guide: https://www.jotform.com/help/42-How-to-Clone-an-Existing-Form-from-a-URL

    Let us know if you have questions. Thank you.

  • DestinationSouthernHighlands
    Replied on February 1, 2018 at 10:43 PM
    Hi
    Thanks for your response, but no, I do not think you have grasped what I am actually asking for?
    e.g. if I was to enter a completion online and the form asked me to enter the bar code number – this is what I need.
    So that if people enter the correct number they continue and submit their entry form, and if not, they are unable to proceed.
    Thanks Trish
    Trish Bow
    MARKETING & DIGITAL
    [Description: https://southern-highlands.com.au/sig/img/esiglogo.png]
    [Description: https://southern-highlands.com.au/sig/img/award-2.png]
    [Description: https://southern-highlands.com.au/sig/img/award-3.png]
    [Description: https://southern-highlands.com.au/sig/img/award-1.png]
    02 4871 2888 [Description: https://southern-highlands.com.au/sig/img/esig-fax.gif] 02 4871 3515 [Description: https://southern-highlands.com.au/sig/img/esig-email.gif] trish.bow@wsc.nsw.gov.au
    [Description: https://southern-highlands.com.au/sig/img/esig-post.gif] 62-70 Main Street Mittagong NSW 2575 PO Box 305 Mittagong NSW 2575
    www.southern-highlands.com.au
    [Description: https://southern-highlands.com.au/sig/img/esig-facebook.gif]
    [Description: https://southern-highlands.com.au/sig/img/esig-twitter.gif]
    [Description: https://southern-highlands.com.au/sig/img/esig-youtube.gif]
    ...
  • Nik_C
    Replied on February 2, 2018 at 3:19 AM

    I'm sorry if I misunderstood the question, but isn't the test form provided by my colleague what you need:

    1517559471screencast Screenshot 10

    So if the user enters the correct ID/code the rest of the form (or just submit button) will show to the user, otherwise, they will not be able to submit it.

    Is that what you had in mind?

  • DestinationSouthernHighlands
    Replied on February 4, 2018 at 5:43 PM
    Hi
    Thanks so much for following up, but unfortunately no, your colleagues form is not what I need, unless I am misunderstanding how this form works?
    e.g. how would I set the number or word that would need to be completed by the form completor?
    Thanks
    Trish
    Trish Bow
    MARKETING & DIGITAL
    [Description: https://southern-highlands.com.au/sig/img/esiglogo.png]
    [Description: https://southern-highlands.com.au/sig/img/award-2.png]
    [Description: https://southern-highlands.com.au/sig/img/award-3.png]
    [Description: https://southern-highlands.com.au/sig/img/award-1.png]
    02 4871 2888 [Description: https://southern-highlands.com.au/sig/img/esig-fax.gif] 02 4871 3515 [Description: https://southern-highlands.com.au/sig/img/esig-email.gif] trish.bow@wsc.nsw.gov.au
    [Description: https://southern-highlands.com.au/sig/img/esig-post.gif] 62-70 Main Street Mittagong NSW 2575 PO Box 305 Mittagong NSW 2575
    www.southern-highlands.com.au
    [Description: https://southern-highlands.com.au/sig/img/esig-facebook.gif]
    [Description: https://southern-highlands.com.au/sig/img/esig-twitter.gif]
    [Description: https://southern-highlands.com.au/sig/img/esig-youtube.gif]
    ...
  • Support_Management Jotform Support
    Replied on February 4, 2018 at 6:39 PM

    e.g. if I was to enter a completion online and the form asked me to enter the bar code number – this is what I need.

    So that if people enter the correct number they continue and submit their entry form, and if not, they are unable to proceed.

    e.g. how would I set the number or word that would need to be completed by the form completor?

    Hello Trish - From how you described it, the solution provided by John should do the trick. We call this feature, CONDITIONS. The idea is to conditionally show/hide fields based on a set premise that you will setup.

    Related guides: 

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

    Hide-or-Show-Multiple-Fields-at-Once

    For example, if your aim is to only allow users to proceed IF and ONLY IF they enter the correct bar code number, then you can conditionally SHOW the SUBMIT button on your form only if the bar code number entered is correct.

    e.g. pretend the correct barcode is 123abc

    IF barcode IS EQUAL TO 123abc THEN SHOW the SUBMIT button

    (else, it will always be hidden and the user is unable to proceed)

    I strongly urge you to click the guides linked above to better understand how to utilize conditions and clone the form shared by John so you can have a closer look.

  • DestinationSouthernHighlands
    Replied on February 4, 2018 at 7:43 PM
    Thank you, we will investigate further.
    The ‘conditions’ link is very helpful.
    Trish
    Trish Bow
    MARKETING & DIGITAL
    [Description: https://southern-highlands.com.au/sig/img/esiglogo.png]
    [Description: https://southern-highlands.com.au/sig/img/award-2.png]
    [Description: https://southern-highlands.com.au/sig/img/award-3.png]
    [Description: https://southern-highlands.com.au/sig/img/award-1.png]
    02 4871 2888 [Description: https://southern-highlands.com.au/sig/img/esig-fax.gif] 02 4871 3515 [Description: https://southern-highlands.com.au/sig/img/esig-email.gif] trish.bow@wsc.nsw.gov.au
    [Description: https://southern-highlands.com.au/sig/img/esig-post.gif] 62-70 Main Street Mittagong NSW 2575 PO Box 305 Mittagong NSW 2575
    www.southern-highlands.com.au
    [Description: https://southern-highlands.com.au/sig/img/esig-facebook.gif]
    [Description: https://southern-highlands.com.au/sig/img/esig-twitter.gif]
    [Description: https://southern-highlands.com.au/sig/img/esig-youtube.gif]
    ...