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

Calculating a numeric field on a separate page from condition field will not display a decimal unless numeric type is Decimal

    Details

      Description

      Steps to reproduce:

      1. Go to Content > Forms
      2. Add a new Form
      3. Add a text field
      4. Add a new page
      5. Add a numeric field in new page
      6. Go to Rules tab
      7. Add a new Rule
      8. Condition if: text field is not empty
      9. Actions: Calculate Show result: Numeric field
      10. Calculations: 21.2 + 3.5
      11. Save
      12. Preview Form
      13. Fill in text field
      14. Go to next page
      15. View numeric field

      Expected Result:

      Numeric field results should be 25

      Actual Result:

      Numeric field result is 247

      Reproduced on:

      Tomcat 9.0.17 + MySQL 5.7

      Master: 8d3eedcbbadd2b1a02e81c0f9820bc739f84e19e

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  17 weeks, 5 days ago

                  Packages

                  Version Package
                  7.2.10 DXP FP1
                  7.2.X
                  Master