Title: Inline validation sets errors on fields inside .novalidate
Last modified: October 6, 2026

---

# Inline validation sets errors on fields inside .novalidate

 *  [Jules Colle](https://wordpress.org/support/users/jules-colle/)
 * (@jules-colle)
 * [16 hours, 32 minutes ago](https://wordpress.org/support/topic/inline-validation-sets-errors-on-fields-inside-novalidate/)
 * Fields inside a `.novalidate` element are left out of the form data in `validate()`(`
   includes/js/src/validate.js`), but the loop that sets the errors does not skip
   them. They fail the `required` rule and show “Please fill out this field.”
 * **Steps to reproduce**: create this form, then type something in `field-b` and
   leave the field.
 *     ```wp-block-code
       <div class="novalidate">[text* field-a]</div>[text field-b][submit]
       ```
   
 * **Expected**: no error on `field-a`.
 * **Actual**: `field-a` shows “Please fill out this field.”
 * **Fix**: skip `.novalidate` wraps in the loop that sets the errors:
 *     ```wp-block-code
       for (const wrap of wrapList) {  if (undefined === wrap.dataset.name) {    continue;  }  // add this:  if (wrap.closest(".novalidate")) {    continue;  }
       ```
   
 * Tested with 6.2.
 * PS: Seems like I’m blocked from creating issues on the github repo [https://github.com/rocklobster-in/contact-form-7](https://github.com/rocklobster-in/contact-form-7).
   Would you consider allowing me to post issues and PRs in your github repo? My
   github name is [pwkip](https://github.com/pwkip).

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Finline-validation-sets-errors-on-fields-inside-novalidate%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](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/)

 * 0 replies
 * 1 participant
 * Last reply from: [Jules Colle](https://wordpress.org/support/users/jules-colle/)
 * Last activity: [16 hours, 32 minutes ago](https://wordpress.org/support/topic/inline-validation-sets-errors-on-fields-inside-novalidate/)
 * Status: not resolved