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

  • Profile Image
    DestinationSouthernHighlands
    Asked on February 01, 2018 at 08: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

  • Profile Image
    John_Benson
    Answered on February 01, 2018 at 09: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.

  • Profile Image
    DestinationSouthernHighlands
    Answered on February 01, 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]
    ...
  • Profile Image
    Nik_C
    Answered on February 02, 2018 at 03:19 AM

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

    1517559471screencast.gif

    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?

  • Profile Image
    DestinationSouthernHighlands
    Answered on February 04, 2018 at 05: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]
    ...
  • Profile Image
    Jim_R
    Answered on February 04, 2018 at 06: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.

  • Profile Image
    DestinationSouthernHighlands
    Answered on February 04, 2018 at 07: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]
    ...