Allow users to type past the character limit on hard limits and display an error upon save.

Created on 4 March 2022, over 2 years ago
Updated 25 April 2024, 2 months ago

Problem/Motivation

When a field has a hard character limit, most authors prefer to still be able to type past the character limit. This way they know how far they are exceeding the limit by and can adjust accordingly.

Proposed resolution

Instead of preventing a user from typing past the character limit, allow them to do so but display an error when the user tries saving the form.

An error message should display at the top of the page stating, " [Field Name] cannot be longer than [maxlength] characters but is currently [current] characters long."

The hard limit configuration help text should read, "If enabled, the author is prevented from saving the form if the character limit exceeds the maxlength."

Remaining tasks

  1. Remove checkbox Enforce limit on saving form
  2. Incorporate error upon save behavior to Hard limit option.
  3. Apply this hard limit behavior to all Maxlength compatible fields (title, formatted text, plain text, link)
  4. Update Hard limit option help text to state, "If enabled, the author is prevented from saving the form if the character limit exceeds the maxlength."
  5. Fix character count not updating.
  6. Test

User interface changes

Yes, to the text field and the Maxlength configuration settings.

API changes

None

Data model changes

None

✨ Feature request
Status

Postponed

Version

2.1

Component

User interface

Created by

πŸ‡ΊπŸ‡ΈUnited States cedewey Denver, CO

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024