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

Form Builder email field not passing validation by default

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: High
    • Resolution: Unresolved
    • Affects Version/s: 2.3.1
    • Fix Version/s: None
    • Component/s: Form Builder
    • Labels:
      None

      Description

      When using the Form builder I can add an email form to the field. When set to required it does not pass the server side validation. The default validation is set to "Alphabet" and with the @ and . characters it will not pass.

      Currently there is no Email validation. You can use a Custom validation, with a pattern like to achieve passing validation. However, this is not what I would expect as a user of the system.

      Steps to reproduce:

      1) Create new form object and edit form
      2) Add email element, set it to required and submit
      3) Save object and open it on the front end siteaccess
      4) Enter email and submit form
      5) See validation error: Value does not match the pattern.
      6) Edit form and change email validation to custom and this pattern:

      /^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$/
      

      7) Open front end and refill form
      8) Enjoy the sweetness of the submitted form

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              jani.tarvainen@ez.no Jani Tarvainen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: