Add option "I only want the counter. No errors should be triggered."

Created on 4 October 2018, about 6 years ago
Updated 19 July 2023, over 1 year ago

Problem/Motivation

I enabled the counter for some fields but I wanted to enable only the counter. So when unchecking the "Prevent form submission when character limit exceeded" option for some fields it does not allow saving the content when this option is disabled. It means that the validation of the field is executed when the current_count is major than maxlength_count even the Prevent form submission option is disabled. Which is intended, as this setting with the unchecked option now is supposed to trigger a Form API error during form validation instead.

Proposed resolution

Add another option Only display the counter. No errors should be triggered. And rename the existing option to Validate and display errors via JavaScript and prevent form submission when character limit exceeded.

✨ Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡΅πŸ‡ͺPeru heilop

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.71.5 2024