forked from splittingred/FormIt
-
Notifications
You must be signed in to change notification settings - Fork 58
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
Incorrect field splitting in &validate parameter #276
Comments
Validation will work if add a comma at the end of the field, but, as I understand it, it's just that now the validation also happens for an extra empty field.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug report
Summary
The fields in the
&validate
parameter are separated by commas.And if there is an extra character before / after the field (space, line break, etc.), then field validation does not work.
Clearly uncoordinated field splitting, it's worth adding a
trim()
or something like that.Step to reproduce
For example, if you set the parameter like this, validation of the last field (message) does not work.
But if you remove the line break, then everything will work:
Observed behavior
Field validation does not work.
Expected behavior
Validation should work.
Environment
Related issue - #251
FormIt 4.2.7-pl
MODX 2.8.4
The text was updated successfully, but these errors were encountered: