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

Form cannot be sent using data provider and rules

    Description

    Description

    When using a data provider in the rules, it is not possible to send the form.

    Steps to Reproduce

    1. Go to Liferay > Forms
    2. Access the Data Providers option in the top-right kebab menu
    3. Add a new Data Provider
    4. Fill Name with: Get Countries
    5. Fill URL with: http://localhost:8080/api/jsonws/country/get-countries
    6. Fill user name and password with the credentials you use to log in to Liferay ([email protected], test)

    Fill output as follows:

    • Label: Country Name
    • Path: nameCurrentValue
    • Type: List
    1. Save it
    2. Go to Liferay > Forms
    3. Add a mew form
    4. Add a text field
    5. Add a select from list
    6. Add two option (ex. Select 1, Select 2)
    7. Go to rules
    8. Add a new condition
    • If Field Text Field contains Value country
    • Autofill Countries from Data Provider Liferay Countries
    1. Publish the form
    2. Go to published form
    3. Type "country" on the text field
    4. Select "Afghanistan" on the select from list field
    5. Submit
    6. Observe

    Expected Result

    User is able to submit the form correctly.

    Actual Result

    The form shows an error of "Validation failed for field "Countries"".

     Evidence:
    dataProviderBug.mp4

    Reproduced In master: 
    9b640c3cfb997f3512a83ae79c1e24b44224f27e

      Attachments

        Activity

          People

          Assignee:
          carolina.barbosa Carolina Barbosa
          Reporter:
          rafaella.jordao Rafaella Jordao
          Participants of an Issue:
          Recent user:
          Felipe Lins
          Engineering Assignee:
          Carolina Barbosa
          Votes:
          0 Vote for this issue
          Watchers:
          0 Start watching this issue

            Dates

            Created:
            Updated:
            Resolved:
            Days since last comment:
            16 weeks ago

              Packages

              Version Package
              7.4.3.22 CE GA22
              Master