Textarea Fields do not enforce max text length #45

Closed
martinconnelly opened this Issue Jul 23, 2012 · 6 comments

Comments

Projects
None yet
5 participants

If there is a text limit -- doesn't matter what the text limit is. At least for me...

Owner

wilr commented Jul 24, 2012

It should set the 'maxlength' value in your html text box. Have you set your text field to take multiple rows then you can insert as many characters as you want since no maxlength for textarea.

Gotcha. I had assumed I could set it to limit a large box to, say, 400
words. Will have to think of a workaround.

Thanks!

m

On Tue, Jul 24, 2012 at 2:51 AM, Will Rossiter <
reply@reply.github.com

wrote:

It should set the 'maxlength' value in your html text box. Have you set
your text field to take multiple rows then you can insert as many
characters as you want since no maxlength for textarea.


Reply to this email directly or view it on GitHub:

#45 (comment)

Owner

wilr commented Jul 25, 2012

The module should make it clearer (or have javascript validation) to enforce maxlength in textareas. Will alter your title to make it clearer

Contributor

robbieaverill commented Jul 27, 2017

Closing, feel free to reopen if this is still an issue

This would be very helpful to have. Just a field in the field's settings - maxlength for textarea fields.

@robbieaverill robbieaverill reopened this Aug 25, 2017

@robbieaverill robbieaverill removed this from the 1.0.0 milestone Aug 25, 2017

Owner

dhensby commented Aug 25, 2017

Adding a max length to a textarea would require some JS. I think this is probably outside of the scope of this module and perhaps someone could create a "length limited text area editable field" which could include https://github.com/jonom/silverstripe-text-target-length

@dhensby dhensby closed this Aug 25, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment