Jump to content

Recommended Posts

Posted

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

 

Posted

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/

 

Posted

ah ok, it's strange. I forgot to mention, but it was already set as required. But I get full length on frontend. Anyway, it's not the most important thing...

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
  • Recently Browsing   0 members

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