Required Fields are not being validated
-
On WordPress 5.6.1 and using Contact Form 7 version 5.4, only the email field is being validated. All other text input or textarea fields that require validation aren’t being checked at all.
To replicate, create a basic form like this:
[text* your-name placeholder "* Your Name"] [email* your-email placeholder "* Your E-mail"] [text website placeholder "Website"] [text telephone placeholder "Telephone"] [textarea* your-message placeholder "* Your Message"] [submit "Submit"]
The email field gets validated and returns appropriate errors when empty or incorrect. However, the ‘your-name’ and ‘your-message’ fields don’t get validated at all. Which means leaving them blank allows the form to be submitted.
No filters are being used on the site to modify WPCF7 behavior.
No PHP errors or WP errors/warnings are being thrown by Ajax, and the debug log is also clean.
Curious to hear why this is happening in the latest version of the plugin.
Thanks!
David
- The topic ‘Required Fields are not being validated’ is closed to new replies.