Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: 7.1.X
    • Fix Version/s: 7.1.X
    • Component/s: Forms
    • Labels:

      Description

      Steps to reproduce

      1. Start a clean bundle of Liferay DXP 7.1 installed with dxp-12 and hotfix-1992.
      2. Go to Content -> Forms -> Options -> Data Providers and create a new Data provider with the following fields:
            Name: restcountries
            URL: https://restcountries.eu/rest/v2/region/{region}?fields=name
            User name: test
            Password: test
            Inputs - Label: region
            Inputs - Parameter: region
            Inputs - Type: Text
            Outputs - Label: name
            Outputs - Path: $..name
            Outputs - Type: List
        
      3. Create a new form with the following field names and field types: Region (Text), Countries - From Autofill (Select from List), Test (Text) and make all the fields required
      4. Add the following rule to the form: If Region is not empty, Do Autofill from Data Provider: restcountries, region: Region, name: Countries
      5. Add a forms portlet to a page and add this form
      6. Type Asia into region, and then select a region from the dropdown and then enter Test in the Test field
      7. Change the region to Polar, and verify that the Countries drop down automatically clears out and displays no selection
      8. Submit the form

      Results of Testing

      Expected Results: The select field should be set to the option for Polar (e.g. Antarctica). The user should not be able to submit the form if the selected value has been cleared out and only shows the dropdown icon.
      Actual Results: The form does not display the option for Polar, but you can still submit the form.

      Errors/Logs

      None

      Master

      Not Reproduced - 44069c50e5236df066f705e5d88b04559f7e5883

      7.1.x

      Reproduced - 700e7d5a4ccdda48211ca305eb4efc090a4dbdd6

        Attachments

          Activity

            People

            • Assignee:
              cleyton.magalhaes Cleyton Magalhaes
              Reporter:
              lino.alves Lino Alves
              Participants of an Issue:
              Recent user:
              Randolph Do (Inactive)
              Engineering Assignee:
              Lino Alves
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                5 weeks, 6 days ago

                Packages

                Version Package
                7.1.X