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

    (@codepeople)

    Hi,

    The issue was corrected some versions ago. Please, follow the steps below:

    1. Open the “/wp-content/plugins/calculated-fields-form/js/fbuilder-pro-public.jquery.js” file with the text editor of your choice.

    2. Go to the piece of code:

    $("#fieldlist" + identifier + " .pb" + page).find(".field")[0].focus();

    and modify it as follows:

    $("#fieldlist"+identifier+" .pb"+page).find(":focusable")[0].focus();

    3. Finally, go to the settings page of the plugin, through the menu option: “Settings/Calculated Fields Form”, untick the checkbox: “Activate Javascript Cache”, and press the “Update” button.

    Best regards.

    Thread Starter byronedwards

    (@byronedwards)

    Hi,

    we’re using Version 5.0.73 but I’ve made the changes and it now loads page 2 with some of the form showing rather than the footer.

    Ideally it would load at the top of the form rather than half-way down, is that possible?

    Many many thanks,

    Byron 🙂

    Plugin Author codepeople

    (@codepeople)

    Hi,

    Have you cleared the browser’s cache?

    What browser are you using?

    I’ve tested your form again, with the Chrome browser, and it is working right. The focus is set in the first focusable field of the page, and the browser is scrolled to the correct position.

    Best regards.

    Thread Starter byronedwards

    (@byronedwards)

    Hi,

    It’s working as intended in Chrome, Firefox shows it halfway down the page. I can live with that.

    Thanks again,

    Byron

    Plugin Author codepeople

    (@codepeople)

    Hi,

    That’s happening because the first focusable element in the second page is the “Transit Insurance” field, that is not at the top of the page, if you move a focusable field to the top of page the browser will be scrolled to the correct location.

    Best regards.

    Thread Starter byronedwards

    (@byronedwards)

    hi,
    thanks for your help so far 🙂

    Our client has just pointed out that page 2 still goes to the footer on mobile devices, in this case an iphone.

    Plugin Author codepeople

    (@codepeople)

    Hi,

    I’m sorry for delay, I’ve not received the notification of your new tickets in the support page, please, try the following one:

    1. Insert a “HTML Content” field in the form.

    2. Enter as its content the piece of code:

    <script>
    jQuery('.pbNext,.pbPrevious').on('click', function(){
    var f = jQuery(this).closest('form');
    jQuery( 'html, body' ).animate({
            scrollTop:  f.offset().top
        }, 500);
    });
    </script>

    and that’s all.

    Please, let me know the result.

    Best regards.

    Thread Starter byronedwards

    (@byronedwards)

    Hi,

    this has worked 🙂 Many thanks for the support – you’ve been excellent.

    Byron 🙂

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Trouble with the 'Next' button’ is closed to new replies.