# Dynamic text field - multiline

**URL:** <https://forum.kirupa.com/t/dynamic-text-field-multiline/101901>\
**Category:** Uncategorized\
**Created:** [February 17, 2004, 7:22pm UTC](https://forum.kirupa.com/t/dynamic-text-field-multiline/101901 "2004-02-17T19:22:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jacobaa](https://avatars.discourse-cdn.com/v4/letter/j/898d66/32.png) [@jacobaa](https://forum.kirupa.com/u/jacobaa)\
**Post date:** [February 17, 2004, 7:22pm UTC](https://forum.kirupa.com/t/dynamic-text-field-multiline/101901/1 "2004-02-17T19:22:08Z")

</div>

I have text coming in via remoting. I can see the text, however it will not multiline for some reason. I have checked the height of the text box and set it to 500 which should be sufficient. Anyone got any ideas? Here is the code:

// CREATING HEADLINE TEXT FORMAT /////////////////////////////////////////  
headformat = new TextFormat();  
headformat.font = “HelveticaNeue Condensed”;  
headformat.bold = true;  
headformat.size = 36;  
headformat.multiline = true;

createTextField(“headLine”,this.uiDepth++,13,17,114,500);

// HEADLINE TEXT ////////////////////////////////////////  
headLine.text = result.items[0].c\_Textline;  
headLine.selectable = false;  
headLine.multiline = true;  
headLine.setTextFormat(headformat);  
headLine.embedFonts = true;

---

<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:** [February 17, 2004, 9:20pm UTC](https://forum.kirupa.com/t/dynamic-text-field-multiline/101901/2 "2004-02-17T21:20:00Z")

</div>

I figured it out if anyone needs to know for further use - just add this to the existing code

headLine.wordWrap = true;
