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

As a power user, I want to limit the number of characters of text and long text fields

Details

    Description

      Context:

      Many use cases around text fields need to limit the number of characters that end users can add to them. Use cases as First Names, Last Names, Labels and so on, need to be limited to fit some business rules. Also, for long texts, customers may need to add this length validation to avoid very long text fields, as descriptions to be used in commerce pages.

      Design Deliverables

      Mockup

      Acceptance Criteria

      1 - Given a power user,
      when adding text fields,
      then I must be able to activate the number of characters limitation

      2 - Given a power user,
      when adding text fields,
      then I must be able to limit the number of characters that the user can enter in that field

      • This must happen for Text (String) and Long Text fields (Clob)

      3 - Given a user,
      when filling a custom text field with characters limitation,
      then I must be able to identify the number of characthers left I can add in the field

      • This must happen for Text (String) and Long Text fields (Clob)

      4 - Given a user,
      when filling a text field,
      then I must not be able to submit entries with fields where the user added more characters than the limit for that field

      Definition of Done (DoD):

      • All Acceptance Criteria were passed;
      • Make sure that the expected automated tests were created (unit / integration / functional) and passed successfully;
      • Validated by QA and Product Manager;
      • No critical bug related to Story scope (FP5);
      • Make sure that all system documentation were updated (if necessary)

      Ticket Updates

      1. The characters limit is going to be logic, not physical (database);
      2. In case the user disables and enables the switch, the input value will return to its default value;
      3. The characters limit can be changed after object's publication, therefore, if this limit is decreased after entries have been created, those same entries won't be able to be edited unless their values are in compliance with the new limit;
      4. The user won't be able to effectively type values outside the allowed range;
      5. Blank spaces will be counted during entry validation.

      Attachments

        Issue Links

          Activity

            People

              daniel.angotti Daniel Angotti (Inactive)
              luiz.jardim Luiz Jardim
              Rodrigo Paulino Rodrigo Paulino (Inactive)
              Kiyoshi Lee Kiyoshi Lee
              Julia Lira
              Rodrigo Paulino (Inactive)
              Aline Cantarelli, Milton Castro (Inactive), Rebeca Silva
              Diogo Santos (Inactive), Rafaella Jordao
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Packages

                  Version Package
                  7.4.3.24 CE GA24
                  7.4.13 DXP U24
                  Master