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

Select from List field does not fill its options correctly after rule is fulfilled for the second time

    Details

      Description

      Steps to reproduce:

      1. Go to Site's Content > Forms;
      2. Click to add a form with following fields:
        • Text;
        • Select from List:
          • Add at least two manual options. For the sake of this verification, let's say: Option 1 and Option 2;
          • Select Option 1 as predefined value;
      3. Go to the Rules tab and click to add the following rule:
        • If Field [text] is equal to Value [test] Enable [select], AND Show [select];
      4. Go back to the Builder tab and click on "Preview Form";
      5. Type "test" in the text field and assert that the select field is now visible with the predefined value of "Option 1" and the other value is loaded in the drop down;
      6. Erase the text from the text field and assert that the select field is now not visible;
      7. Type again "test" and assert that the select field is now visible again.

      Expected behavior:
      The options should be correctly rendered as they were on step 5.

      Actual behavior:
      No option is selected as predefined and when you click to view the options available, there's only one option with the value ["Option1"].

        Attachments

          Activity

            People

            Assignee:
            randolph.do Randolph Do (Inactive)
            Reporter:
            rodrigo.paulino Rodrigo Paulino
            Participants of an Issue:
            Recent user:
            Clarissa Velazquez
            Engineering Assignee:
            Renato RĂªgo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              2 years, 38 weeks, 4 days ago

                Packages

                Version Package
                7.1.10 DXP FP15
                7.1.X