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

Web Form portlet checkbox validation should work when the field is mandatory

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 6.2.X EE, 7.0.0 M3
    • Fix Version/s: 6.2.X EE, 7.0.0 M3
    • Component/s: Web Form
    • Labels:
    • Branch Version/s:
      6.2.x
    • Backported to Branch:
      Committed
    • Story Points:
      4

      Description

      1. Start the portal and login as a super admin.
      2. Add Web Form portlet to the welcome page of Liferay site.
      4. Click the wheel icon and select Configuration.
      5. In Setup tab, under Form Fields section, change Name field type for checkbox, and then uncheck Optional to save the configuration.
      6. Back to the form, click Send button, "This field is mandatory." info will be displayed for Comments field.
      7. Add the content in Comments field, and then click send.

      Actually behavior: the form can't be submited. And "Your request failed to complete. " info will be displayed in UI.
      Expected behavior: "This field is mandatory." info will be displayed for Name field.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                3 years, 25 weeks, 6 days ago

                Zendesk Support