Uploaded image for project: 'Runtime'
  1. Runtime
  2. RUNTIME-3503

Character counter on textarea field should be active as soon as the field defines a characters limitation

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • 4.3.8, 4.4.0
    • None
    • None
    • None

      Specify a "maxLength" on a texteara field is not enough to display characters counter and have a JS validation.

      <cms:metadata name="short-content" type="string">
                 <label i18n="true">PLUGINS_WORKSPACES_CONTENT_ALERT_SHORT_CONTENT</label>
                 <description i18n="true">PLUGINS_WORKSPACES_CONTENT_ALERT_SHORT_CONTENT_DESC</description>
                 <validation>
                     <mandatory />
                     <maxlength>100</maxlength>
                 </validation>
                 <widget>edition.textarea</widget>
                 <widget-params>
                      <maxLength>100</maxLength>
                 </widget-params>
             </cms:metadata>
      

      We have to add <charCounter>true</charCounter> widget parameter

            laurence Laurence Aumeunier
            laurence Laurence Aumeunier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: