• Resolved saharbr

    (@saharbr)


    Hi,
    I want to create a page break dependency that is triggered by a checkbox. For example: if the user checks “Cars”, I want to display the page in the form that contains “Cars”.

    I tried putting the “Page Break” inside the div, and making the dependency display that div, but it’s not working (it’s creating a blank page at the end of the form, and displays the div in the same page as the checkbox).

    I hope this can be achieved inside the plugin, and not with an outside solution.
    Thanks a lot in advance!

    https://wordpress.org/plugins/calculated-fields-form/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author codepeople

    (@codepeople)

    Hi,

    Why to use pages and not any other container field like: DIV or fieldset?

    With the pages it is not possible create dependencies, but you can insert a container field in the form, and include into it all fields corresponding to the cars, and finally, define the container as a dependent field of the choice selected in the checkbox field.

    Best regards.

    Thread Starter saharbr

    (@saharbr)

    Maybe if I elaborate, I could explain myself better.

    My form has 5 pages by default. I want to add a page if a user checks a certain option, but omit it if it’s left uncheck.

    Is that possible? Or do I have to add external functionality?

    Plugin Author codepeople

    (@codepeople)

    Hi,

    No I’m sorry, you can not insert or remove pages dynamically. In this case you should use container fields instead of pages.

    Best regards.

    Hi,

    I was looking for the same functionality and having same issue, blank pages appearing at the end of the form because Page Breaks are always executed, even when the are no more fields to show up in the form. I guess this is not a normal behavior… any target to fix this in new versions?

    Thanks!

    Plugin Author codepeople

    (@codepeople)

    Hello @imontero,

    The “Page Break” fields should be inserted between the fields that belong to different pages, you simply should remove the “Page Break” field at the end of the form’s structure.

    If you need additional help, please, include in the next ticket a link to the webpage with the form inserted to check its structure.

    Best regards.

    Sorry, I didn´t explain myself properly.

    Simplifying the explanation, the thing is that I have 4 different pages with a radio button field on each. Depending on the value selected on the questions I need to show 1 or 2 more questions, therefore pages, and lastly a button to navigate somewhere else (result of the questionnaire).

    https://tribbius.com/prueba-formulario/

    If you select the first option in all the questions you navigate across the 4 pages, with a field on each. However, if you select the third option ‘Mutuo acuerdo’ in the first question I just need another page with the result button, but I still see the Next button to navigate to the last two questions, although they are empty and I don´t need them for that user selection.

    Thanks!

    Plugin Author codepeople

    (@codepeople)

    Hello @imontero,

    I’m sorry, but in the current version of the plugin the form’s pages cannot be defined as dependent fields, so, if you insert dependent fields in a page, and the fields are not active, the page would be accessible, even if there are no fields on it.

    Best regards.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Creating Dependency for Page Breaks’ is closed to new replies.