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

Autofill rule not populating field when field is not empty

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 7.1.X, 7.2.X, Master
    • Fix Version/s: 7.1.X, 7.2.X, Master
    • Component/s: Forms
    • Labels:

      Description

      Steps to Reproduce:
      1. Navigate to Content > Forms
      2. Add a data provider with 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 with the following settings:

      Condition:
      If "Postal code", "Is not empty"
      Actions:
      Do "Autofill" Form Data Provider "zipcloud"
      Data Provider's Input:
      zipcode "Postal code"
      Data Provider's Output:
      prefecture "Prefectures"
      city "City"

      7. Publish form and go to the "Address" form link.
      8. Input "1500000" in "Postal code" field.
      9. Make sure that "東京都" and "渋谷区"is auto filled in "Prefectures" and "City" field.
      10. Input "5300000" to "Postal code" field.

      Expected results:
      "Prefectures" field value changes to "大阪府" because "Postal code" is not empty.

      Actual results:
      "Prefectures" field remains with value "東京都".

        Attachments

          Activity

            People

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

              Dates

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

                Packages

                Version Package
                7.1.X
                7.2.X
                Master