Support

Account

Home Forums Feature Requests Add support for character limit to text & textarea fields

Add support for character limit to text & textarea fields

  • 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

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Add support for character limit to text & textarea fields’ is closed to new replies.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.