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

regex in Liferay Forms is not working as expected

    Details

      Description

      While trying to add a validation on a text field I ran into the following error message while saving the form

      New Form is temporarily unavailable.

      I was using 'If input does not match' with a regex like:

      \d+
      

      OR

      \d{10}
      

      Since this is a regular regex I expect this to work.
      My workaround for now, trying to validate on numbers was to use

      [0-9]{10}
      

      But this really should work with all kinds of regex, simple and advanced.

        Attachments

          Activity

            People

            Assignee:
            alex.candido Alex Candido
            Reporter:
            jan.verweij Jan Verweij
            Participants of an Issue:
            Recent user:
            Brian Wulbern
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              2 years, 10 weeks, 6 days ago

                Packages

                Version Package
                7.1.10 DXP FP10
                7.1.10.2 SP2
                7.1.3 CE GA4
                7.1.X
                Master