Hi,
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?
Thanks.
2 Answers
With that column, You can use html input validation.
$col[“editoption”][“maxlength”] = 20;
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.
Your Answer