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

[New Form Builder] Field Name is accepting an invalid character from Label and is not allowing to save the form

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: Master
    • Fix Version/s: Master
    • Component/s: Forms
    • Labels:

      Description

      Summary:
      The Field Name is being created using a timestamp logic instead of label name logic.

      Steps to reproduce:

      1. Go to Content > Forms;
      2. Click to add a New Form;
      3. Add a field (e.g.: a Text Field);
      4. Edit the label to: ",-+!@#$%^*()=_.?/;:{}[]|" ;
      5. Go to the Properties tab and observe how the Field Name is being automatically populated with "_|";
      6. Try to Save the form;

      Expected result:
      Only valid characters should be accepted in the field name, allowing the user to properly save the Form.

      Actual result:
      The Field Name is showing some characters as valid, but when trying to save the form, an error is happening and the Form is not saved. When removing the pipe "|" the underscore/underline is kept in the field name as valid and the user is able to save the Form.

      Test Environment:

      Commit: e859c42377f246f8c454c372ae0d3e7049643e8e
      Updated on: Fri Apr 5 15:16:36 2019 -0700

       

       

        Attachments

          Activity

            People

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

              Dates

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

                Packages

                Version Package
                Master