Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Textarea Fields do not enforce max text length #45

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

Textarea Fields do not enforce max text length #45

martinconnelly opened this issue Jul 23, 2012 · 6 comments

Comments

@martinconnelly
Copy link

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

@wilr
Copy link
Member

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.

@martinconnelly
Copy link
Author

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)

@wilr
Copy link
Member

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

@robbieaverill
Copy link
Contributor

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

@asecondwill
Copy link

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

@dhensby
Copy link
Contributor

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 as completed Aug 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants