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

Autofill is overwriting previously filled field

    Details

      Description

      Steps to reproduce

      1. Navigate to Content > Forms
      2. add a data provider as the following settings
        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 settings
        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 "5300000" to "Postal code" field

      Expected results:
      "Prefectures" field remains with value "東京都", since it is not empty anymore.

      Actual results:
      "Prefectures" field value changes to "大阪府"

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              harry.chai Harry Chai
              Reporter:
              lino.alves Lino Alves
              Participants of an Issue:
              Recent user:
              Lino Alves
              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, 39 weeks, 5 days ago

                  Packages

                  Version Package
                  7.1.10 DXP FP13
                  7.1.X