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

As a form builder, I would like to have an automatic option created for fields that require items (options), so that I prevent creating inconsistent fields on my form.

    Details

      Description

      Goal:

      • Allow field types that require options (such as select from list, multiple selection and single selection) to have an automatic option, so that invalid options are avoided when a form is saved.

      Users:

      • Form builder

      Benefits:

      • Provide the first option as a sample to improve Forms experience;
      • Avoid invalid options inside fields when the user is saving a form, this impacts directly the autosave feature.

      User Story:

      As a form builder, I would like to have an automatic option created for fields that require items (options), so that I prevent creating inconsistent fields on my form.

      DOD:

      1. Create automatically the first option, labeled as "Option";
      2. "Option" should not be treated as a place holder, it should be a valid item on the list;
      3. If the user removes the "Option" and doesnt replace it for another filled option, the "Option" should come back automatically as a value on-blur state;
      4. A second line should appear after the "Option". This second line should be labeled as a placeholder called "Add Option";
      4. If the second line is filled, another line should appear below it with the place holder "Add Option" and so on;
      5. This rule should work on Select From List field (Select) and also on Single Selection (Radio Button) and Multiple Selection (Checkbox).

      Product Design references:

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              charlles.pinon Charlles Pinon
              Reporter:
              charlles.pinon Charlles Pinon
              Recent user:
              Jason Pince
              Participants of an Issue:
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package
                  7.1.X
                  Master