# How do I prevent users entering more than 3 lines to an input texfield?

**URL:** <https://forum.kirupa.com/t/how-do-i-prevent-users-entering-more-than-3-lines-to-an-input-texfield/234856>\
**Category:** flash\
**Created:** [August 6, 2007, 7:06pm UTC](https://forum.kirupa.com/t/how-do-i-prevent-users-entering-more-than-3-lines-to-an-input-texfield/234856 "2007-08-06T19:06:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![schmichael](https://avatars.discourse-cdn.com/v4/letter/s/ea5d25/32.png) [@schmichael](https://forum.kirupa.com/u/schmichael)\
**Post date:** [August 6, 2007, 7:06pm UTC](https://forum.kirupa.com/t/how-do-i-prevent-users-entering-more-than-3-lines-to-an-input-texfield/234856/1 "2007-08-06T19:06:04Z")

</div>

Hiya, thanks for checking my post out. I have an input textfield where users can enter information over three lines. I have set a maximum chars property of the number of characters for the 3 lines but the user can still enter more than 3 lines of text if they press enter.  
Is there a way i can limit the entry into the box to 3 lines without splitting it into 3 single line text boxes?

Thanks for your suggestions in advance 🙂  
Schm,
