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

Form Validation for Numeric Field not Working

    Details

      Description

      Description of Issue:

      When having a form field that utilizes validation for numbers, it accepts letters as well.

      To Reproduce the Issue:

      1) Create a new form (generic form from Liferay Forms and Workflow suite)
      2) Add a Text Field and name it "Age"
      3) Scroll down (or click on "Properties" in Master) and enable Validation
      4) Set Validation to "Number" and "equal to or greater than" with a value of "0" (see attached screen shot). Basically, we're validating the age to be greater than 0. (NOTE: In Master, this option is not available)
      5) Save new form
      6) Add form to a page and select the new form that was just created
      7) In the "Age" field, enter a letter or word (not a numeral)
      8) Submit form

      Results of Testing:
      Expected Results:  Should receive a validation error and form not submitted
      Actual Results:  Form successfully submits

      Reproduced:

      • Branch = Reproduced (942f2f53c3aa4057f09829c279687b5f935feffb)
      • Master = Not Reproduced (f82efee57869490291d19af5c94622764eb8e900); not reproduced in Master because validation options have changed

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 36 weeks, 1 day ago

                Packages

                Version Package
                7.0.0 DXP FP40
                7.0.0 DXP SP7
                7.0.5 CE GA6
                7.0.X