D
D
Dmitry Klimantovich2020-06-25 16:24:50
WordPress
Dmitry Klimantovich, 2020-06-25 16:24:50

How is Contact Form 7 validated?

According to the Contact Form 7 standard, validation is done using the .wpcf7-validates-as-required class. When trying to submit a form, a message is displayed in .wpcf7-response-output. But how to make it so that a message is displayed under an empty field about the need to fill in this field, as in the picture?
5ef4b32940ec4937098674.png
I see that there is such a message in the settings:
5ef4af59278ef106037588.png
How to make the field have required="required". Can this be done somehow in the theme's functions.php file?
Or how to do your validation before submitting the form data?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question