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

Autosave on forms is not working if autofill list has only 1 entry

    Details

      Description

      Steps to reproduce

      1. Go to Content -> Forms -> Data Providers and add the following three Data Providers:

      2. Add the following query into the database:

      INSERT INTO REGION (MVCCVERSION, REGIONID, COUNTRYID, REGIONCODE, NAME, ACTIVE_) VALUES ('5001', '29002', '20', 'NA', 'NA', '1');
      

      3. Go to Content -> Forms and add a Form.
      4. Add a Select from List field with the following properties:

      • Label: Countries
      • Create List: From Data Provider
      • Choose a Data Provider: Countries
      • Choose an Output Parameter: CountryNameValue

      5. Add another Select from List field with the following properties:

      • Label: States
      • Create List: From Autofill

      6. Save the Form.
      7. Go to Rules tab and create the two following rules:

      • If Field Countries is equal to Value United States, Autofill States from Data Provider Default States - State
      • If Field Countries is not equal to Value United States, Autofill States from Data Provider States - State

      8. Save and Publish the Form.
      9. Go to a page and add the Forms portlet and connect with the Form just made.
      10. Select United States and Alabama and wait a minute, and verify that it automatically saves. You can check this information through the View Entries option of the the created Form.
      11. Select Afghanistan and NA and wait a minute.

      Expected Result

      NA will also automatically save.

      Actual Result

      NA does not save.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              harry.chai Harry Chai
              Reporter:
              lino.alves Lino Alves
              Participants of an Issue:
              Recent user:
              Jason Pince
              Engineering Assignee:
              Rodrigo Paulino
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 50 weeks, 2 days ago

                  Packages

                  Version Package
                  7.1.10 DXP FP14
                  7.1.X
                  7.2.10 DXP FP1
                  7.2.1 CE GA2
                  7.2.X
                  7.3.10 DXP GA1
                  Master