
How to Add a Character Limit To a Contact Form 7 Text Box
Adding a character limit to a Contact Form 7 text box requires a little bit of code to make it work.
The trick: You can’t use a textarea, it must be just a text field.
The code: text your-name 100/140 will give you a single line text box that is 100 characters wide and has a character limit of 140 characters.
To make the box mandatory, add a * after the text: text* your-name 100/140
It’s as beautifully simple as that.
farrukh
awesome solution…….Thanks
Siyal Khan
Didn’t worked.
Sara Thornton
Hi Siyal,
Thanks for your post. Can you try the instructions here and see if they work for you? https://contactform7.com/max-min-length-options-and-character-count/