Can't show/hide the pagebreak button only when it's combined together with the submit button

  • Profile Image
    garciageorge
    Asked on July 14, 2021 at 03:49 PM

    I need to hide a section of my form for internal use. So when the form is completed I need the hidden section sent to HR for completion and submitted to the approval flow.

  • Profile Image
    EltonCris
    Answered on July 14, 2021 at 10:11 PM

    That's possible through conditions.

    Here's how:

    1. First, add a multiple choice field in your form with a single option yes and a label "internal" then hide the field (right-click > hide) so it's not visible on the live form.

    You may also want to add a submit button after the multiple choice field so users can submit the first page.

    20210715094125uE.png

    Right now, there's currently a bug with page break when added together with submit button, they automatically combined and won't work with conditions so to overcome it, add another submit button to separate the page break and submit button.

    20210715095954xW.png

    2. After that, add a show/hide condition that shows the 2nd Submit and Page Break when the internal field is equal to yes. Example:

    01302021_Mar8N47Bpd.png

    20210715100513ZX.png

    3. And to reveal the page break button so HR can proceed to the next page, simply append this in the form URL ?internal=Yes

    Example:

    https://form.jotform.com/211947822519967?internal=Yes

    Alternatively, the 2nd page can also be accessed with this parameter ?jumpToPage=2

    Example:

    https://form.jotform.com/211947822519967?jumpToPage=2

    FYI, I hide the 2nd button on my form with CSS codes. Please feel free to clone my cloned version of your form with these changes so you can further inspect it.

    My form: https://form.jotform.com/211947822519967?

    Guide: How to Clone an Existing Form from a URL

    I have also escalated the page break bug to our devs so once this is fixed, there will be no need to use 2 submit buttons. We'll let you know after that.

    Thanks