• Resolved Swissprice

    (@swissprice)


    Hello,

    I purchased this great plugin and setup the form successfully.

    However, when I click on “Next” (at a page break), it scrolls the page so the title of the first field is at the top of the browser’s window.

    How can I prevent that or change the div/id where it scrolls to?

    Thank you in advance for your help ??

    Kind regards,
    Samuel

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

    (@codepeople)

    Hi @swissprice,

    After pressing the “Next” button, the browser is scrolled at top of the next page (in previous versions of the plugin the page is scrolled to the first focusable field), however, If you don’t want to scroll the page, you should edit the plugin’s code as follows:

    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:

    if ($("#fieldlist"+identifier+" .pb"+page).find(".field").length>0)

    and modify it as follows:

    if (false && $("#fieldlist"+identifier+" .pb"+page).find(".field").length>0)

    3. 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 Swissprice

    (@swissprice)

    Hello,

    Thank you for your fast reply.

    As I am using the PREC function, I think my form won’t work anymore if I activate the Javascript cache.

    However, I will try it anyway.

    Thank you! ??

    Plugin Author codepeople

    (@codepeople)

    Hi @swissprice,

    If you untick the checkbox for the javascript cache in the settings page of the plugin, the plugin will delete the “/wp-content/plugins/calculated-fields-form/js/cache/all.js” file, and will generate the javascript code at runtime, joining the code of controls. But if after visiting the website with the option disabled, you tick the checkbox again, the all.js file would be generated again, and this time with the new code.

    Best regards.

    Thread Starter Swissprice

    (@swissprice)

    Hello,

    Thank you very much for your reply and sorry for now replying for a long time…

    I just did all the process your explained and it worked perfectly.

    Thank you for your efficient support!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Page scrolls down when I click on “Next”’ is closed to new replies.