This is a two-part question.
-
What is the best way to implement a maxlength on a text input field? Check On Change for the length comes to mind but it would be nice if there was a simple way that doesn’t require coding for an HTML attribute.
-
Is it best practice to validate all input lengths before inserting them into the database as a double check to make sure they’re not longer than the max length of the column?
Thanks,
Tim