How to hide submit button based on condition?

  • Profile Image
    adzarr
    Asked on January 17, 2018 at 08:42 PM

    Well, in my opinion it is not about the password.  I noticed that we can hide and unhide pages by means of fulfilling certain precondition.  By setting a specific precondition using codes in the first page, I can then expose subsequent hidden pages.  This feature is already available in the current JotForm.  My concern is, that the submit button also appeared in the first page.  As there is specific amount of submission quota per month, according to type of account, I certainly don't want people who are unable to authenticate themselves to press the submission button and drain away my quota.  In other words, in addition to the authenticating code/precondition, I also don't want the submit button to appear.  Somehow, I did not see that option available in the conditional settings.  

  • Profile Image
    Jed_C
    Answered on January 17, 2018 at 09:03 PM

    This is possible using the conditional rule. Here's what you need to do.

    1. Create a blank short text field

    1516241158hide_submit2.png

    2. Create a condition that if the "short text field" is not equals to "xxxx" (your access code), Hide submit button.

    1516240906hide_submit.png

    You can even set a different access code for each page. Please check my sample form here https://form.jotform.com/80167897222968 to see how it works. Page 1 access code is 1234 and Page 2 is 4567.

    Let us know if you have any questions.

  • Profile Image
    adzarr
    Answered on January 18, 2018 at 11:44 PM

    Let me be more explicit.  When the form is run, this is the first page. 

    1516336688jotform2.png

    I don't want that green 'submit' button to appear. 

    I don't see the options appearing in my conditional setting.

    1516336763jotform1.png

    I don't get the submit button option, in the drop down list, unlike what you have shown above. 

    Thanks

  • Profile Image
    adzarr
    Answered on January 19, 2018 at 12:03 AM

    In the previous setting, I have set 'hide' pages for field 2-7 at design time, to show at run time if authentication is correct.   

    I have followed your example that is to 'show' at design time, and then hide at runtime, only to show these pages if authentication is correct.  I still arrived at the same state.  "That 'submit button' has a live of his own"

  • Profile Image
    adzarr
    Answered on January 21, 2018 at 07:50 PM

    Somehow the answer is within Jotform.  I am just puzzled of the various version of Jotform interface in the forum.  For me, the submit button did not appear in the hide/show conditional options, but in enable/required field.  It has a disable submit option.  And that worked for me. This problem considered solved.  1516582152disablesubmit.png

  • Profile Image
    Nik_C
    Answered on January 22, 2018 at 04:27 AM

    I'm glad you were able to figure it out.

    The fact is that if you are creating a form in card layout:

    1516613133Screen Shot 2018-01-22 at 10.2

    You will not be able to conditionally hide Submit button.

    But you will be able in the Classic layout:

    1516613194Screen Shot 2018-01-22 at 10.2

    Hope it helps.

    Thank you!

  • Profile Image
    adzarr
    Answered on January 22, 2018 at 05:23 AM

    Thanks Nik.

    I don't mind the submit button appearing, so long I could disable it. 

    form in progress