# Maximum words in text input field

**URL:** <https://community.weweb.io/t/maximum-words-in-text-input-field/2057>\
**Category:** How do I?\
**Created:** [March 17, 2023, 4:49pm UTC](https://community.weweb.io/t/maximum-words-in-text-input-field/2057 "2023-03-17T16:49:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nekitonn](https://avatars.discourse-cdn.com/v4/letter/n/3da27b/32.png) [@nekitonn](https://community.weweb.io/u/nekitonn)\
**Post date:** [March 17, 2023, 4:49pm UTC](https://community.weweb.io/t/maximum-words-in-text-input-field/2057/1 "2023-03-17T16:49:03Z")

</div>

Hi everyone!

Is there a way to set max words or characters in the text input fields?  
I expect it to work the same way as max number in number input fields.

---

<div class="post-metadata">

**Author:** ![raydeck](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/raydeck/32/384_2.png) [@raydeck](https://community.weweb.io/u/raydeck)\
**Post date:** [March 17, 2023, 9:18pm UTC](https://community.weweb.io/t/maximum-words-in-text-input-field/2057/2 "2023-03-17T21:18:18Z")

</div>

You can set the max length by setting the HTML attribute “maxlength” on your text input. Here’s a screenshot of where you make the change:

 ![Screenshot 2023-03-17 at 5.17.52 PM](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/a/adf8d37180015e5d3cfa3b3c8e4a99af2f71eb0a.png)

---

<div class="post-metadata">

**Author:** ![nekitonn](https://avatars.discourse-cdn.com/v4/letter/n/3da27b/32.png) [@nekitonn](https://community.weweb.io/u/nekitonn)\
**Post date:** [March 27, 2023, 10:59am UTC](https://community.weweb.io/t/maximum-words-in-text-input-field/2057/3 "2023-03-27T10:59:34Z")

</div>

Thank you! Working as intended.
