-
-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Form field filter not taken into account for frontend validation #259
Comments
Looks like you haven't loaded netteforms.js |
Yes, I haven't, knowingly. |
Anyway, the filter isn't applied to the value even with netteforms.js - how could it convert the PHP closure to javascript? |
dg
added a commit
that referenced
this issue
Jan 6, 2021
dg
added a commit
that referenced
this issue
Jan 9, 2021
dg
added a commit
that referenced
this issue
Jan 9, 2021
dg
added a commit
that referenced
this issue
Jan 9, 2021
dg
added a commit
that referenced
this issue
Jan 10, 2021
dg
added a commit
that referenced
this issue
Jan 19, 2021
dg
added a commit
that referenced
this issue
Jan 19, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version: 3.0.7
Bug Description
Trying to filter form field value based on this doc chapter. https://doc.nette.org/cs/3.0/form-validation#toc-uprava-vstupu
As
addRule(Form::PATTERN
adds a HTML attributepattern
, the input of the field, which would cleanup the value to pass the pattern test is not applied before HTML5 validation in the browser, the form cannot be submitted.Steps To Reproduce
The example from the documentation will also not pass the HTML5 validation when containing spaces.
Expected Behavior
It is possible to submit the form.
Possible Solutions
The text was updated successfully, but these errors were encountered: