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

Numeric Field cannot be used for Autofill input

    Details

    • Story Points:
      1
    • Fix Priority:
      3

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  1 year, 16 weeks, 4 days ago

                  Packages

                  Version Package
                  7.1.0 Beta 1
                  7.1.0 Beta 2
                  Master