Hey everyone, sorry if this post is in wrong topic, I am new here
I would like to ask how I could make form to require email and name only. By default this form require email,name and message. And I don’t know how to make only 2 required. If I delete validate-input from message in HTML then form ignores others two required fields and sends the form even if they are empty.
The form is in Top 41 Free HTML5 & CSS3 Contact Form Templates 2021 - Colorlib and I am using Contact Form 4 by Colorlib
I hope you are doing well today.
When you edit the form, ensure that the 2 fields have the “required” keyword. Please have a look at this code as an example:
<input placeholder="Your name" type="text" tabindex="1" required autofocus>
Hello, I was thinking about required solution. But this form has custom classes like validate-input and a data-validate. I would like to edit those somehow so they could prevent from empty fields in the name and email, but would not ask for the message.
Good morning Ponaz
Required is the natieve solution to require data in the field