# How to force a line break in dynamic input field?

**URL:** <https://forum.kirupa.com/t/how-to-force-a-line-break-in-dynamic-input-field/292286>\
**Category:** Uncategorized\
**Created:** [July 12, 2009, 9:19pm UTC](https://forum.kirupa.com/t/how-to-force-a-line-break-in-dynamic-input-field/292286 "2009-07-12T21:19:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![humbucker](https://avatars.discourse-cdn.com/v4/letter/h/278dde/32.png) [@humbucker](https://forum.kirupa.com/u/humbucker)\
**Post date:** [July 12, 2009, 9:19pm UTC](https://forum.kirupa.com/t/how-to-force-a-line-break-in-dynamic-input-field/292286/1 "2009-07-12T21:19:01Z")

</div>

Hello,

I’ve created dynalically a multiline input field for a backend app, the prob I’m facing is that even if I have used a “width” parameters, the user can type a text as long as he want on the first line of the field, it never line break to the next one.

Here is my code

```auto

        msgBox.type = TextFieldType.INPUT ;    
        msgBox.embedFonts = true;
        msgBox.defaultTextFormat = textFmt;
        msgBox.multiline = true ;
        msgBox.width = 225;
        msgBox.height = 300 ;
        msgBox.border = false ;
        msgBox.x = 21 ;
        msgBox.y = 203 ;
        msgBox.text = "" ;
        msgBox.restrict = "A-Z a-z 0-9 !.,?";
        msgBox.tabIndex = 4;
         form.addChild(msgBox);    

```

The prob is that i need to display these information on another multiline textfield after that,

Thank you thank you !!
