You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
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: