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

Repeatable fields in a Form cannot be repeated if using a non-manual data provider

    Details

      Description

      If viewing a Form in the Forms portlet with a repeatable (select) field that uses a URL data source, then the button to repeat will be missing. The button will render but will be de-rendered almost immediately.

      Steps to reproduce:

      1. Navigate to Content -> Forms
      2. Click the dots in the upper-right corner, click "Data Providers," and add a new Data Provider
      3. Fill in the necessary fields:
        1. Add a name
        2. Input "http://localhost:8080/api/jsonws/country/get-countries" in the URL field
        3. Input "name" for both the "Displayed JSON Attribute" and "Stored JSON Attribute" fields
        4. Fill in the "User Name" and "Password" fields with the Test user's credentials
      4. Save the new Data Provider
      5. Back in Forms admin, add a new Form
      6. Add a "Select from List" field
      7. Select "From Data Provider," and then select the newly added data provider
      8. Under "Show More Options," make the field repeatable
      9. Finish editing the Form and save
      10. Add a Forms portlet to a page and select the new Form
        Expected result: the Form loads and the select field can be repeated with a plus ('+') button
        Actual result: the Form loads, but the button to repeat the select field is missing

      Reproduced in ee-7.0.x: c8a4e0f0bfefb28d0093eacd813b0384fadf3357

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  1 year, 40 weeks, 6 days ago

                  Packages

                  Version Package
                  7.0.0 DXP FP28
                  7.0.X EE
                  7.0.4 CE GA5