Can't fix "Please fill out this field." not phrased

Mr. Jinx

Well-known member
Affected version
2.1.0
Pressing 'Register' without entering a field gives the warning "Please fill out this field."
This does not seem to be availabe as phrase for translation.

195228
 
That kind of validation error is actually produced by the browser so it is out of our remit. It should be translatable using the browser’s localisation system.
 
That kind of validation error is actually produced by the browser so it is out of our remit. It should be translatable using the browser’s localisation system.
If you have in frontend template te attribute required, example

Code:
<input type="text" name="name" required />
Then the browser will prompt that dialog. This doesn't means that this can't be fixed. Just remove attribute required from the form input(s).

And for validating form inputs via JS better make new attribute ex
Code:
data-validate // True or false
data-rule // Here regex pattern
 
It can't be fixed because it isn't broken. We obviously know why the browser displays the text and that behaviour is desirable to us because we don't need to write our own validation code when the browser natively supports it.

If the issue is that your browser isn't localising their validation error in your desired locale then that is an issue you need to seek support from the browser vendor for.
 
Back
Top Bottom