Uploaded image for project: 'eZ Platform Enterprise Edition'
  1. eZ Platform Enterprise Edition
  2. EZEE-2609

Problem validating email fields

    XMLWordPrintable

Details

    Description

      Hi,
      I was testing the new Form Block coming with v2.4.
      Doing so, I found this bug in the form builder.

      https://master-7rqtwti-oilvquzcbb6ys.us-2.platformsh.site/admin/page/preview/https%3A//master-7rqtwti-oilvquzcbb6ys.us-2.platformsh.site/site/test

      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

        Activity

          People

            Unassigned Unassigned
            roland.benedetti-obsolete@ibexa.co Roland Benedetti
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: