Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-94512

Displaying Error Message with two Text Field Validations

Details

    Description

      When two Text Fields with Validation are placed together, the error message will display or not depending on the validation of the second Text Field. If the second Text Field is empty in this case, the validation for the first Text Field will always result in an error.

      Steps to Reproduce
      1. Add a Text Field, call it Test

      • Set Required Field
      • On Properties Tab
      1. Set Validation
      2. If Input: Does Not Match
      3. Value:
      ^\d{5}$
      

      2. Add another Text Field, call it Test2 and repeat above.
      3. Save and publish Form
      4. Add Form portlet on a page and select the new Form
      5. Enter five digit number in Test

      Expected Result: No error notification is displayed
      Actual Result: Error notification is displayed

      Attachments

        Issue Links

          Activity

            People

              harry.chai Harry Chai
              fortunato.maldonado Fortunato Maldonado
              Marta Elicegui Marta Elicegui
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                3 years, 21 weeks, 3 days ago

                Packages

                  Version Package
                  7.1.3 CE GA4
                  7.1.10 DXP FP11
                  7.1.X