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

WebForm portlet doesn't correctly validate field labels with spaces

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 5.2.3
    • Fix Version/s: --Sprint 12/11, 6.1.0 CE RC1
    • Component/s: None
    • Labels:
      None
    • Environment:
      plain 5.2.3 installation
    • Liferay Contributor's Agreement:
      Accept

      Description

      Steps to reproduce:

      • Create fields containing a space (e.g. "Your Name") in WebForm, make it mandatory.
      • For validation, also create a field not containing spaces (e.g. "Name"), make it mandatory
      • Enter data (e.g. captcha), but leave both mandatory fields empty
      • Validation message (input required) for the field without space will be displayed, same message for the field with spaces will not be displayed.

      It seems that this is due to the javascript validation that addresses the (already existent, but hidden via style="display:none") error message through concatenating the fields label to the portlet id, which will not match the actual id (and the actual id will also contain the space, thus be wrong and un-addressable.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  8 years, 5 weeks, 4 days ago

                  Packages

                  Version Package
                  --Sprint 12/11
                  6.1.0 CE RC1