Reply To: "Loading" step / Auto advance

Home Forums Quform WordPress "Loading" step / Auto advance Reply To: "Loading" step / Auto advance

#30068

adg_domme
Participant

I noticed your support may be off for a couple of days, so I helped myself out with this custom JS in the general quform settings:

jQuery(document).ready(function ($) {

    $('.quform-button-next-1_38 button').click(function() {
        setTimeout(function () {
            if ( $('.quform-page-115').hasClass('quform-current-page') ) {
                $('.quform-form-1').data('quform').goToPage(40);
            }
        }, 5000);
    });

    $('.quform-button-back-1_42 button').click(function() {
        setTimeout(function () {
            $('.quform-form-1').data('quform').goToPage(36);
        }, 1000);
    });

});

Follow up question: Is it possible to override the original back button functionality? I had to add a delay of 1s to my custom back button click event (going to a certain step of the form) so it won’t interfere with the original functionality (going back one step). This results in the form going back one step (visible) and then performing my custom event. return false; and X.preventDefault(); etc. didn’t help.

  • This reply was modified 1 week, 5 days ago by  adg_domme.
Be inspired. © 2019 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy