Jump to content

Maximum length textarea


mel47
 Share

Recommended Posts

Hello,

Just a quick question/confirmation. I set a maximum length for textarea to 200 characters. However, I was expecting some kind of warning to user before saving (else the red color of the counter). But it seems not, and the page is saved without problem. Is it the expected behavior?

Thanks

Mel

 

Link to comment
Share on other sites

There is a notice about in field configuration screen

If the field is not “required” then minimum length is only enforced when a value is present.

but it also true for maximum length. 

What I would recommend is to not enforce limits, but just notice that only 200 chars will be outputted on the fronted.

For text truncate you can use these handy functions:

https://processwire.com/blog/posts/processwire-3.0.101-core-updates/

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...