HTML5 form field validation
-
hi
as found in https://wordpress.org/support/topic/how-to-edit-form-validation-messages?replies=18 I am facing the the same issue:
in firefox and chrome the clientside error message for an EMPTY field appears.
my wp, theme (X theme) and plugins are all up to date.
how can you disable this?
do you plan to integrate an option to generally disable html5 validation by adding an “novalidate” attribute to the fields for instance?
thank you!https://wordpress.org/plugins/yikes-inc-easy-mailchimp-extender/
-
Hi Salilou,
Do you mean the wrong error is showing? Like it’s giving an error for an empty field, when it is actually filled in?
If you could clarify that would be great. Also, can you please provide a link to your form?
Thank you!
-TracyHi,
What is the issue that you are facing exactly?
Do you want to disable form validation? If so it is not recommended, as you are going to run into a number of issues down the road.
If you are so inclined to do so, the only method for removing the validation is via jQuery. There is currently no way, and no planned implementation, to allow for users to check off a box to allow/disallow form validation.
You may want to take a look at the
.attr()(http://api.jquery.com/attr/) function provided by jQuery, to help take care of what you are after.Thanks,
Evanthank you try and evan
firefox and chrome show correctly error messages when a field is empty, but they show it in a formal speech, but my site uses informal speech
it is more an issue of the browser, that can only be solved by clever formulation
thank you so far!We fixed that formal wording a couple versions ago. Are you on the newest version of our plugin (6.0.5.5)?
Thank you!
-TracyIts an issue that is caused by the browsers.
Firefox says “Bitte füllen Sie dieses Feld aus.”, which means “Please fill out this field.”
Chrome says “Füllen Sie dieses Feld aus.”, which means “Fill out this field.”
As far as I understand it, these are strings of the browsers, so you can’t do nothing, right?Ah, I see. That is correct.
Wow, I wasn’t expecting that (for these messages to be coming from the browser)…
Is there any way to alter these messages (field empty / email validation failed etc.)?Thanks
Hi @yanoom,
Unfortunately there’s no way to change the default browser message. Sorry about that!
Kevin.
Hi Kevin, thanks for your reply.
In my honest opinion it would be nice to be able to turn off verification for the form (user may chose to apply their own JS verification)…Changing the browser’s language isn’t quite straight forward and it’s common for non-English speakers to have the browser set to English (while visiting international websites).
=)
The topic ‘HTML5 form field validation’ is closed to new replies.