Is there a simple way to prevent users typing to many characters into a field/column?
For example, my SQL database field datatype is set to VARCHAR(20), if the user enters 21 characters an SQL error will be generated, in this scenario I’d want to set the maximum field length to 20 characters. Is there a way of limiting the maximum number of characters the user can enter?
With that column, You can use html input validation.
$col[“editoption”][“maxlength”] = 20;
Abu Ghufran - Dev Team
Grid 4 PHP Framework
Fantastic thanks, I’ve been trying custom validation and knew there had to be something simple. I can’t find this mentioned on your /docs page, it may be something worth adding? Thanks.
We are sorry that this post was not useful for you!
Let us improve this post!
Tell us how we can improve this post?