• my customers cant fill the first step form, it automaticly submit and go to step 2. i had to revet to version 4.2

    this bug is related to : “updated checkboxes to trigger the checked event when form is repopulated.” in v4.2.1 . I have added my own ‘click’ listener to radio buttons in order to go the next step

    Can you repopulate radio and checkbox without triggering the click event? or provide an option to disable it ?

    • This topic was modified 1 year, 2 months ago by zetoun17.
    • This topic was modified 1 year, 2 months ago by zetoun17.

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

Viewing 1 replies (of 1 total)
  • Plugin Author webheadcoder

    (@webheadllc)

    Hi,

    If I pass a parameter, would that help? I can add something like:

    checkbox.trigger('click', [{cf7msm: true}])

    And your code could be something like:

    document.addEventListener( 'DOMContentLoaded', function(event) {
        jQuery('input[type="checkbox"]').on('click', function (e, data) {
            if (data && data.cf7msm) {
            return;
            }
            
            console.log('the rest of your script');
        });
    });

    Would this work?

Viewing 1 replies (of 1 total)
  • The topic ‘since 4.2.1 auto submit step 1 and go to step 2’ is closed to new replies.