-
Type:
Bug
-
Status: Closed
-
Resolution: No Longer Reproducible
-
Affects Version/s: Master
-
Fix Version/s: 7.1.0 Beta 1, 7.1.0 Beta 2, Master
-
Component/s: Forms
-
Labels:
-
Story Points:1
-
Fix Priority:3
Testing on master, I cannot use the Numeric field type as input to a data provider with an autofill rule.
Steps to reproduce:
1. Create a data provider (named countries for this example) using Liferay's get-countries service.
Inputs: Label=countryId Parameter=countryId Type=Number
Outputs: Label=nameCurrentValue Path=nameCurrentValue Type=List
2. Create a form with these 2 fields:
Numeric (int) field: country-id
Select List Field: country-name
Populate the select list with the data provider, specifying nameCurrentValue as the output parameter.
3. Configure an Autofill Rule for the form, like this:
If User belongs to User (or any other condition that evaluates to true)
Autofill country-name from countries
Data Provider's Input=countryId---country-id
Data Provider's Output=nameCurrentValue----country-name
4. Save and Publish the form. Navigate to a page and enter 20 into the country-id field
Expected Result: Afghanistan should be the only selection available in the select list field (country-name).
Actual Result: All countries are available for selection.
Workaround: Make country-id a text field instead. Works as expected.
- depends on
-
LPS-77741 Rule option does not open after adding a new Data Provider
- Closed