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

Input mask format with dot converts integer to decimal

    Details

      Description

      Description
      If the user format the mask with a dot in any position, the integer number is converted to decimal in form entries.

      Steps to Reproduce

      1. Create a form
      2. Add a Numeric Field to the Form.
      3. Make sure that Numeric Type is set to the integer
      4. Go to the Advanced tab
      5. Enable the Input Mask option
      6. Create a mask (E.g +99 (99) 9999-9999)
      7. Publish the form
      8. Go to published form
      9. Type 123412341234
      10. Submit the form
      11.  Go to Content and Data -> Forms
      12. On the created form select View Entries (three dots on the left side of form name)
      13. Observe that the entry is now "0.12341234123" and the last number isn't there
      14. On the entry select View (three dots on the left side of the entry)
      15. Observe that the masked entry is "E.g +01 (23) 4123-4123" and not "E.g +12 (34) 1234-1234"

      Expected Result
      The entry should be an integer number

      Actual Result
      The dot on the mask is interpreted as a decimal separator and the entry is saved as a decimal number

      Reproduced In
      master: 88c7b68bb21a42adc57fd259a0b7f70221afc4fe

        Attachments

          Activity

            People

            Assignee:
            guilherme.vilarim Guilherme Vilarim
            Reporter:
            leticia.chiu Leticia Chiu
            Participants of an Issue:
            Recent user:
            Sophia Zhang
            Engineering Assignee:
            Carolina Barbosa
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              11 weeks, 3 days ago

                Packages

                Version Package
                7.4.13 DXP GA1
                Master