Details
-
Bug
-
Resolution: Unresolved
-
High
-
None
-
2.4.0-rc2
-
v2.4 rc2 spinned up by Sylvain on platform.sh:
https://master-7rqtwti-oilvquzcbb6ys.us-2.platformsh.site/admin
Description
Hi,
I was testing the new Form Block coming with v2.4.
Doing so, I found this bug in the form builder.
Step to reproduce:
1 - create new form with one email field (Take a trip: https://master-7rqtwti-oilvquzcbb6ys.us-2.platformsh.site/admin/content/location/244)
2 - chose the "Alphabets" validation
3 - use another form creating with one email field too (Book a tour: https://master-7rqtwti-oilvquzcbb6ys.us-2.platformsh.site/admin/content/location/240)
4 - place both on a page for testing
5 - test
Observed behavior:
1 - 1 form validate when entering an email in the email field, the other not, which is not consistent.
Expected behavior:
1 - both form should not validate when typing an email in the field, because emails don't follow alphabets.
Suggested fix:
1 - add a default "email validation" regular expression pattern (please see https://github.com/ezsystems/ezplatform-form-builder/pull/109)
2 - configure the Email form field so that this regular expression is chosen by default.
OR
1 - change the email form field so that there is no more way to change the regular expression, and simply enforce an email validation that works well and that is not confusing for the user / editor.
Attachments
Issue Links
- relates to
-
EZEE-2547 Form Builder email field not passing validation by default
- Open