I don’t quite see the issue, i have tested both URL and the form doesn’t send if the phone number is not entered!
dviolante: “One or more fields have an error. Please check and try again.”
Csanady: “Uno o más campos tienen un error. Por favor, revísalos e inténtalo de nuevo.”
i SEE YOU HAVE A *, maybe you could add this text in your form to make it clear:
“The fields marked with an asterisk (*) are mandatory.”
Hello, thank you for your response.
Please see the following image so you can see what i mean.
(Country & Phone Field Contact Form 7 FIELD marked as required is not showing required field error message)
https://www.awesomescreenshot.com/image/33667698?key=16e024275c53fe5c60b2bc5c65c567af
I hope this helps.
Thank you
I see what you mean, I have the same issue but if you use (phonetext*) when all fields are filled if the number is missing it will not send the form and show the error message.
I agree there should be a fix to that.
How about you try to add the following under the phone code:
<label>
[phonetext* telephone placeholder “Phone Number*”]<span class="wpcf7-not-valid-tip" aria-hidden="true">This field is required</span>/label>
Just an idea, i had that plugin on a website that is already delivered to the client so I cannot test it.
Hope this works
<label>
[phonetext* telephone placeholder “Phone Number*”]<span class="wpcf7-not-valid-tip" aria-hidden="true">This field is required</span></label>
Sorry previous one was missing <
I tested this with DevTools and now it shows the warning “This field is required”.
I hope this solves the issue
-
This reply was modified 3 years, 7 months ago by
Dewdan.
@dviolante,
I see you inserted the code, but you need to add it under the contact-form-entry:
[phonetext* telephone placeholder “Phone Number*”]<span class="wpcf7-not-valid-tip" aria-hidden="true">This field is required</span>
Here some screenshot
Cheers
:Daniel
I am not sure but you could try this:
<label>
[phonetext* phonetext minlength:10 maxlength:12 placeholder “Phone Number*”]</label>
Edit min & max to mach your need as some countries may have more numbers.
Saludos
:Daniel
Hello, thank you for your responses.
The thing is that the Required field error message should be shown AFTER user Sends the Form and if phonetext field was not filled up, the error message shoud appear.
With the code you gave me, the Error field code appears without submitting the form.
Any idea?
Thanks
I see, sorry about that, I tried my best, but since the website I installed installed it is our of my reach so you will have to contact the developer, o dig into the js/php file that controls those error messages.
Best of luck!
:Daniel
@dewdan thank you for your time and help!
Hello @dviolante
Thank you for using my plugin. Please update the version of the plugin. The Validation related fixes have been done.
I hope it will work for you.
Kindly share your reviews if this plugin adds value to your web development.
Regards
Narinder.
Hello @narinderbisht, thank you for your response and update of the plugin.
Now the required field notice is working perfect.
Thank you.
Hello @dviolante
Great! it is working fine for you.
Kindly share your valuable review.
Regards
Narinder.