# \[fmx\] to limit lines input textfield

**URL:** <https://forum.kirupa.com/t/fmx-to-limit-lines-input-textfield/20773>\
**Category:** flash\
**Created:** [May 13, 2003, 9:42am UTC](https://forum.kirupa.com/t/fmx-to-limit-lines-input-textfield/20773 "2003-05-13T09:42:43Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![eudora](https://avatars.discourse-cdn.com/v4/letter/e/f14d63/32.png) [@eudora](https://forum.kirupa.com/u/eudora)\
**Post date:** [May 13, 2003, 9:42am UTC](https://forum.kirupa.com/t/fmx-to-limit-lines-input-textfield/20773/1 "2003-05-13T09:42:43Z")

</div>

is there a way to limit the user from entering more than lets say 4 lines in an input textfield?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 13, 2003, 9:47am UTC](https://forum.kirupa.com/t/fmx-to-limit-lines-input-textfield/20773/2 "2003-05-13T09:47:36Z")

</div>

There is an input text box on the property named maximum characters, you number the characters from a line and you multiply them with 4 and you write there.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 13, 2003, 10:16am UTC](https://forum.kirupa.com/t/fmx-to-limit-lines-input-textfield/20773/3 "2003-05-13T10:16:11Z")

</div>

hmmz that is not exactly what i want…  
for an input text field… i can keep pressing enter key and it will still scroll beyond the 4 lines…  
i want it to be just a 4 line box

is it maxScroll?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 13, 2003, 3:51pm UTC](https://forum.kirupa.com/t/fmx-to-limit-lines-input-textfield/20773/4 "2003-05-13T15:51:11Z")

</div>

anyone can help? i would still need this effect… ☹

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 14, 2003, 2:31am UTC](https://forum.kirupa.com/t/fmx-to-limit-lines-input-textfield/20773/5 "2003-05-14T02:31:50Z")

</div>

:hair:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 14, 2003, 2:49am UTC](https://forum.kirupa.com/t/fmx-to-limit-lines-input-textfield/20773/6 "2003-05-14T02:49:28Z")

</div>

I don’t believe there is a way to limit the amount of lines used.

maxscroll sets the maximum amount of lines you can scroll.

maxChars sets the maximum amount of characters that can be contained in the textbox.

maxChars will not help you if the enter button is pressed as it drops a line but still doesn’t register as a full line of characters, so it wont work.

maxscroll won’t work because well… it has to deal with the maximum scrolling and not the maximum amount of lines you can type in.

I don’t think what you want can be done, but I could be wrong.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 14, 2003, 8:23am UTC](https://forum.kirupa.com/t/fmx-to-limit-lines-input-textfield/20773/7 "2003-05-14T08:23:20Z")

</div>

think i will just leave a note for visitors not to exceed the first 4 lines then… 🙂 thanks
