Title: Validation issue when checking checkbox fields
Last modified: August 9, 2022

---

# Validation issue when checking checkbox fields

 *  [lippiun](https://wordpress.org/support/users/lippiun/)
 * (@lippiun)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/validation-issue-when-checking-checkbox-fields/)
 * Hello,
 * I am using Contact Form 7 v5.6.1 on my local WP 6.0.1 installation with the default
   Twenty Twenty Two theme.
 * I have noticed a bug when using checkbox fields on a contact form. The issue 
   is when i toggle the checkbox on the frontend, it triggers a change event on 
   the form causing all validation errors to appear.
 * This is not expected behaviour and the validation should only be triggered when
   a user has submitted the form.
 * If i remove the ‘change’ event handler from the WPCF form DOM element, it works
   as expected.
 * I’ve have captured a screen recording of the issue to help with your investigations.
 * [https://www.awesomescreenshot.com/video/10411987?key=e7b6af3dec2fce4a13f39454bbf51d60](https://www.awesomescreenshot.com/video/10411987?key=e7b6af3dec2fce4a13f39454bbf51d60)
    -  This topic was modified 3 years, 10 months ago by [lippiun](https://wordpress.org/support/users/lippiun/).

Viewing 9 replies - 16 through 24 (of 24 total)

[←](https://wordpress.org/support/topic/validation-issue-when-checking-checkbox-fields/?output_format=md)
[1](https://wordpress.org/support/topic/validation-issue-when-checking-checkbox-fields/?output_format=md)
2

 *  Thread Starter [lippiun](https://wordpress.org/support/users/lippiun/)
 * (@lippiun)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/validation-issue-when-checking-checkbox-fields/page/2/#post-15990317)
 * [@galbaras](https://wordpress.org/support/users/galbaras/) Not sure what you 
   mean by that tbh.. You said [@takayukister](https://wordpress.org/support/users/takayukister/)
   needs to get involved, any idea when this may be?
 * > Time for [@takayukister](https://wordpress.org/support/users/takayukister/)
   > to get involved, I guess.
 *  [Gal Baras](https://wordpress.org/support/users/galbaras/)
 * (@galbaras)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/validation-issue-when-checking-checkbox-fields/page/2/#post-15993106)
 * Oh, sorry [@lippiun](https://wordpress.org/support/users/lippiun/) . It was [@andreaciocca](https://wordpress.org/support/users/andreaciocca/)
   who created the issue on GitHub.
 * I may be a supported of this plugin, but not an official one, and being blocked
   from interacting with the plugin’s development repository makes my support a 
   lot more difficult 🙁
 *  [horace3d](https://wordpress.org/support/users/horace3d/)
 * (@horace3d)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/validation-issue-when-checking-checkbox-fields/page/2/#post-16003299)
 * I also have this annoying issue and wasted a lot of time with it today. I hope
   it will be fixed soon. Maybe there is some workaround with adding your own click
   event handler on the checkbox and stop propagation or something? I will try tomorrow.
 *  [andreaciocca](https://wordpress.org/support/users/andreaciocca/)
 * (@andreaciocca)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/validation-issue-when-checking-checkbox-fields/page/2/#post-16005262)
 * [@galbaras](https://wordpress.org/support/users/galbaras/) I’m sorry to hear 
   that, but I just followed your advice about opening an issue on github 🙂
 * In any case [@horace3d](https://wordpress.org/support/users/horace3d/) please
   let us know if you find a temporary workaround, I haven’t been able neither editing
   index.js
 *  [horace3d](https://wordpress.org/support/users/horace3d/)
 * (@horace3d)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/validation-issue-when-checking-checkbox-fields/page/2/#post-16006497)
 *     ```
       $('.wpcf7 input[type="checkbox"]').on("change", function(e) {
         // e.preventDefault(); // doesn't help!
         e.stopPropagation(); // helps!
       });
       ```
   
 * This workaround helps! It also happens with file inputs by the way.
 * [https://wordpress.org/support/topic/contact-form-7-checkbox-problem/](https://wordpress.org/support/topic/contact-form-7-checkbox-problem/)
 * There are other reports of this problem. Maybe someone can post an example for
   Takayuki Miyoshi so that he can examine it? (I can’t at them moment. Maybe a 
   bit later.)
    -  This reply was modified 3 years, 8 months ago by [horace3d](https://wordpress.org/support/users/horace3d/).
    -  This reply was modified 3 years, 8 months ago by [horace3d](https://wordpress.org/support/users/horace3d/).
 *  [andreaciocca](https://wordpress.org/support/users/andreaciocca/)
 * (@andreaciocca)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/validation-issue-when-checking-checkbox-fields/page/2/#post-16007870)
 * [@horace3d](https://wordpress.org/support/users/horace3d/) I just posted a sample
   video there!
 * This is the link, straight from cf7 checkbox doc page
 * [https://www.veed.io/view/c23101f7-4b97-4813-b52d-752f691908ee?sharingWidget=true](https://www.veed.io/view/c23101f7-4b97-4813-b52d-752f691908ee?sharingWidget=true)
 *  [horace3d](https://wordpress.org/support/users/horace3d/)
 * (@horace3d)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/validation-issue-when-checking-checkbox-fields/page/2/#post-16007907)
 * Thanks! 🙂
 *  [andreaciocca](https://wordpress.org/support/users/andreaciocca/)
 * (@andreaciocca)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/validation-issue-when-checking-checkbox-fields/page/2/#post-16016955)
 * sorry [@horace3d](https://wordpress.org/support/users/horace3d/) , video link
   expired, this is the new one:
 * [https://www.il-rinnova-cucina.it/cf7.mp4](https://www.il-rinnova-cucina.it/cf7.mp4)
    -  This reply was modified 3 years, 8 months ago by [andreaciocca](https://wordpress.org/support/users/andreaciocca/).
 *  [Gal Baras](https://wordpress.org/support/users/galbaras/)
 * (@galbaras)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/validation-issue-when-checking-checkbox-fields/page/2/#post-16120474)
 * This problem still exists in v5.6.4 🙁

Viewing 9 replies - 16 through 24 (of 24 total)

[←](https://wordpress.org/support/topic/validation-issue-when-checking-checkbox-fields/?output_format=md)
[1](https://wordpress.org/support/topic/validation-issue-when-checking-checkbox-fields/?output_format=md)
2

The topic ‘Validation issue when checking checkbox fields’ is closed to new replies.

 * ![](https://ps.w.org/contact-form-7/assets/icon.svg?rev=2339255)
 * [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7/reviews/)

## Tags

 * [validation](https://wordpress.org/support/topic-tag/validation/)

 * 24 replies
 * 4 participants
 * Last reply from: [Gal Baras](https://wordpress.org/support/users/galbaras/)
 * Last activity: [3 years, 7 months ago](https://wordpress.org/support/topic/validation-issue-when-checking-checkbox-fields/page/2/#post-16120474)
 * Status: not a support question