Support » Plugin: Contact Form 7 Multi-Step Addon » Validate Checkboxes before step progression

  • Resolved GusSalvador

    (@gussalvador)


    It seems that my form is not validating required checkboxes before proceeding the next step. Can anyone confirm that this isn’t working for them either?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author https://themerex.net/

    (@themerex)

    Hi @gussalvador,
    The Multi-Step Plugin extends the Contact Form 7 functionality. Please make sure you have the latest WP and CF7 plugin versions. In most of the cases it resolves the issues.
    If not – let me know.

    Hey,

    We ran into the same issue and I don’t think you’re correct in the assumption that this is caused by outdated versions.

    Basically, HTML for checkboxes is different than for the input fields. Class wpcf7-form-control is added on wrapping span and not on the input fields. When you ran the span element through serialize() function the checkboxes get omitted.

    I have a fix for this. Not pretty but works:
    https://gist.github.com/nowakpiotrek/4e9def5a68e0926cb4d6780022379425

    A small update, the fix now works with conditional fields plugin as well. In order to apply one needs to grab the file from gist and replace the scripts.js file in the assets/js folder of the plugin. Remember to minify and upload both files 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Validate Checkboxes before step progression’ is closed to new replies.