• Resolved thankssforhelp

    (@thankssforhelp)


    Hi there,

    I hope you can help me with the following issue:

    To move to the next and previous page on the form I have the buttons next and back on my forms.

    However, is it also possible to use the button back of the browser and of the mobile phone? I just tried it but it moves the whole page back to the previous page but doesn’t seem to work for the form itself.

    Thank you very much and kind regards

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @thankssforhelp

    I hope you’re well today!

    This isn’t possible, I’m afraid. Browser buttons are working on URL/page basis. The multi-page form isn’t really split between multiple pages (in which case it would really have to be a set of multiple separate forms rather than single multipage form) so browser

    – “back” button – will always move to the previous page, as in “real page”
    – “next” button – doesn’t even know and cannot know what’s the next “step” of the form.

    Such form (8it may be better to think about it as “multi-step” rather than “multi-page”) is in fact a single form with sections hidden and they are showing/hiding on button click, all within the single “real” page.

    Kind regards,
    Adam

    Thread Starter thankssforhelp

    (@thankssforhelp)

    Hi Adam @wpmudev-support8,

    thank you very much for your very quick feedback.

    Too bad this doesn’t work, this would be very helpful as other sites use this for example. They use a separate page per step I assume?

    Still best thanks for your help and kind regards

    Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @thankssforhelp

    as other sites use this for example. They use a separate page per step I assume?

    That’s possible but it’s also possible that the form itself works in some different way on “code level” – maybe e.g. automatically creating “virtual” pages. But I’m not enough familiar with “under the hood” code of other forms plugins to be able to tell more about it.

    In Forminator, the multisitep form is in fact just a regular “single step” form with just some “sections” that are revealed/hidden accordingly; so it’s in fact a “single page”.

    There is a sort of of a workaround, in case you’d want to give it a go, but please note: it makes things a bit more complicated in terms of configuration and it results in multiple submissions spread across multiple forms for single user instead of just one submission.

    The idea here is to create separate forms instead of one big form, place them on separate pages and “interlink” them using redirect behavior togahter with “pre-populate” feature of the plugin (which is, basically, sending values from form to form via the URL parameters).

    In a nutshell:
    – you set first form (with a few fields)
    – and set its submission behavior to redirect to page where the second form is; in redirect URL you set it to include all the form values

    – on the second form you add a series of “hidden” fields which you set to take value from “query var” (those would be ones carried over from previous page/form and a next set of regular fields

    – then again you set that second from submission behavior to redirect to the page where the third form is and in redirect URL include both all those hidden fields and additional fields

    – and so on – until you got forms for all the steps completed.

    The last form will include all the data in submission but there’ll also be those “intermediate” forms submitted so that may create a bit of a “mess” (unless you set all those “intermediate” forms to not store submissions in DB and not send e-mails; while only keeping the last one set this way).

    It should work for relatively simple forms with no complex calculations across the pages – but it’s still a “trick” so should first be thoroughly tested on some dev site to make sure that it helps the way you need.

    Kind regards,
    Adam

    Thread Starter thankssforhelp

    (@thankssforhelp)

    Hi Adam @wpmudev-support8,

    thank you very much for the very detailed answer. It all sounds very understandable and comprehensible. I will possibly test it out.

    Kind regards

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘button next and back with browser’ is closed to new replies.