Affects Version/s: 2.4.0-rc2
Fix Version/s: None
v2.4 rc2 spinned up by Sylvain on platform.sh:
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
1 - 1 form validate when entering an email in the email field, the other not, which is not consistent.
1 - both form should not validate when typing an email in the field, because emails don't follow alphabets.
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.
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.