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

Forms Rule does not update empty field value for field that triggers the event

    Details

      Description

      Steps to reproduce

      1. Navigate to Content > Forms
      2. Add a data provider as the following:
        Name:zipcloud
        URL:http://zipcloud.ibsnet.co.jp/api/search?zipcode={zipcode}
        INPUTS:
        Label zipcode
        Parameter zipcode
        Type Text
        Required enable
        OUTPUTS:
        Label prefecture
        Parameter $.results[0].address1
        Type Text
        Label city
        Parameter $.results[0].address2
        Type Text
      3. Add a form named "Address"
      4. Add 3 text fields named "Postal code", "Prefectures" and "City"
      5. Save the form
      6. Add a rule as the following:
        Condition:
        If "Postal code" "Is not empty" and "Prefectures" "Is empty"
        Actions:
        Do "Autofill" Form Data Provider "zipcloud"
        Data Provider's Input:
        zipcode "Postal code"
        Data Provider's Output:
        prefecture "Prefectures"
        city "City"
      7. Add a form portlet to any page and set "Address" form
      8. Input "1500000" to "Postal code" field
      9. Make sure that "東京都" and "渋谷区"is auto filled to "Prefectures" and "City" field
      10. Input empty value to "Prefectures" field

      Expected behavior:
      Since Postal code is not empty and Prefectures is empty, the rule should be satisfied and "Prefectures" field should be autofilled.
      (This is the current behavior on branch master)

      Actual behavior:
      "Prefectures" remains empty, and after clicking submit button "Prefectures" is autofilled.

        Attachments

          Activity

            People

            • Assignee:
              harry.chai Harry Chai
              Reporter:
              lino.alves Lino Alves
              Participants of an Issue:
              Recent user:
              Clarissa Velazquez
              Engineering Assignee:
              Lino Alves
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 1 week, 2 days ago

                Packages

                Version Package
                7.1.10 DXP FP13
                7.1.X