• Resolved PB

    (@ohtusabes)


    Hi codepeople2

    I want the form to automatically scroll to fieldname88 when a checkbox is selected. Is there a way to do this?

    Thank you in advance

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author CodePeople2

    (@codepeople2)

    Hello @ohtusabes

    Yes, of course, that’s possible. You can insert a calculated field in the form to be used as an auxiliary, and enter the following equation:


    (function(){
    if(fieldname89) {
    getField(fieldname88|n).jQueryRef()[0].scrollIntoView({ behavior: 'smooth', block: 'start' });
    }
    })()

    As the calculated field is used as an auxiliary, you can hide it and exclude the file from submission by ticking a couple of checkboxes in its settings.

    Best regards.

    Thread Starter PB

    (@ohtusabes)

    Hi @codepeople2

    Amazing!

    Thank you

    Plugin Author CodePeople2

    (@codepeople2)

    Hello @ohtusabes

    If you have been satisfied with both the plugin and our support, we would be immensely grateful if you could leave us a review on the plugin ( https://ww.wp.xz.cn/support/plugin/calculated-fields-form/reviews/ ). Your feedback will help us reach more users. 

    Best regards. 

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Auto scroll’ is closed to new replies.