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

Form Number Validation Fails to Display Custom Error Message

    Details

      Description

      Description:
      The Number Validation for Forms shows a default message when entering invalid text even with the existence of a custom error message.

      Steps to Reproduce:

      1. Create new form with a text field with number validation (>0)
      2. Enter a custom error message for the field validation.
      3. Save form
      4. Add new form to Forms portlet
      5. Enter invalid text to get the validation to fail and show validation error message.

      Expected Results:
      The error message shown is the same the author has written when creating the form.

      Actual Results:
      The error message is a default message, which authors cannot modify.

      Branch:
      Reproducible in Branch

      70x-private-0aa3b54d38e8ebb82bc87d8d6a88a4ee00c3a8d5:80

      Master:
      Not Reproducible in Master
      Number validation appears to have been removed. If we use the related Regex option, we get the expected behavior.

      master-0fafe0a7171885ddcbfd7a957df5fc7f2ef12ee8:80

        Attachments

          Activity

            People

            • Assignee:
              harry.chai Harry Chai
              Reporter:
              il.kim Brian I. Kim
              Participants of an Issue:
              Recent user:
              Csaba Turcsan
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 28 weeks, 6 days ago

                Packages

                Version Package
                7.0.0 DXP FP46
                7.0.6 CE GA7
                7.0.0 DXP SP8
                7.0.X
                7.1.0 Beta 1