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

Field is being validated even if its visibility is false

    Details

      Description

      Steps to reproduce:

      1. Add a form with the following fields and rule:
        1. Fields:
          1. Single Selection:
            1. Label: Radio Button;
            2. Add two manual Options: yes and no;
          2. Text Field:
            1. Label: Text
            2. Validation: on;
            3. If Input: "Does not match";
            4. The Value: ^[a-zA-Z '.-]*$;
            5. Show Error Message: the value is invalid;
        2. Rules:
          1. If Field [Radion Button] is equal to Value [yes] Show [Text];
      2. Publish the form;
      3. Enter the link of the published form on another tab;
      4. Select "yes" in the "Radio Button" field;
      5. Type "2222" in the "Text" field and assert that field is correctly invalidating the value;
      6. Select "no" in the "Radio Button" field;
      7. Submit the entry.

      Expected behavior:
      The entry should be successfully submitted.

      Actual behavior:
      The entry is not submitted because the text field is still being invalidated even though it's not necessary according to the rule.

        Attachments

        1. Failed.PNG
          Failed.PNG
          48 kB
        2. Fixed.PNG
          Fixed.PNG
          21 kB

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  2 weeks, 2 days ago

                  Packages

                  Version Package
                  7.2.10 DXP FP2
                  7.2.10.1 DXP SP1
                  7.2.X
                  7.2.1 CE GA2
                  Master