Many sites require character limits on certain fields to prevent user input from “breaking” the design. One can simply truncate fields on output, but being able to limit the input would be a more user-friendly approach.
I propose creating an additional option “Max Length” to text and textarea fields where an admin can specify a numeric character limit for the field. The value specified here gets rendered as a “maxlength” attribute on the form field elements, preventing a user from entering input beyond the character limit.
Patch: https://github.com/elliotcondon/acf/pull/99
Hi @bootsz
Thanks for the git contribution. I’ll have a look tonight and merge it in.
Cheers
E