Details
-
Bug
-
Status: Closed
-
Resolution: Fixed
-
7.1.X
-
7.1.x
-
Committed
-
3
Description
Steps to reproduce
- Navigate to Content > Forms
- 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
- Add a form named "Address"
- Add 3 text fields named "Postal code", "Prefectures" and "City"
- Save the form
- 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"
- Add a form portlet to any page and set "Address" form
- Input "1500000" to "Postal code" field
- Make sure that "東京都" and "渋谷区"is auto filled to "Prefectures" and "City" field
- 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.