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

Numerical Fields depend on rules are allowing non-numerical characters to be input

    Details

      Description

      Issue
      Duplicated Numerical Fields are permitting alphabetical characters on Forms Preview.

      This behavior only occurs if the duplicate numerical field is linked to a Rule.

      Steps to Reproduce
      1. Create a new Form
      2. Add a Numeric Field to the Form (Label: Original Numbers)
      3. Save
      4. Create another numeric Field and make the label different (Label: Duplicate Numbers)
      5. Save
      6. In the form, go to the Rules tab, then add a new Rule:

      Condition: If ORIGINAL - NUMBERS IS NOT EMPTY
      Actions: Do SHOW - DUPLICATE NUMBERS

      7. Save the Rules, then Save the Form once more
      8. Preview the Form
      9. Type "1234" to the first field and notice the second (duplicated) field will appear (note: the first field will not take alphabetical characters)
      10. Once the duplicate field appears, add the same alphanumeric text ("abc1234")

      Expected Results:
      The duplicated Numerical Field should only take numbers

      Actual Behavior:
      The duplicated Numerical Field is taking in alphabetical texts instead of disallowing non-numeric characters.

      Reproduced on
      DXP 7.1 + Fixpack DXP-6
      7.1.X Commit: 18d72bd7057de1b97995e822c4db643b5c609fe1
      Master Commit: 413d61f158d682e42378f27dee52ad38d8c16297

        Attachments

          Activity

            People

            Assignee:
            joyce.wang Joyce Wang
            Reporter:
            il.kim Brian I. Kim
            Participants of an Issue:
            Recent user:
            Clarissa Velazquez
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              2 years, 33 weeks, 4 days ago

                Packages

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