# Dynamic input text field

**URL:** <https://forum.kirupa.com/t/dynamic-input-text-field/224883>\
**Category:** Uncategorized\
**Created:** [May 6, 2007, 7:41pm UTC](https://forum.kirupa.com/t/dynamic-input-text-field/224883 "2007-05-06T19:41:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![daniellex](https://avatars.discourse-cdn.com/v4/letter/d/c67d28/32.png) [@daniellex](https://forum.kirupa.com/u/daniellex)\
**Post date:** [May 6, 2007, 7:41pm UTC](https://forum.kirupa.com/t/dynamic-input-text-field/224883/1 "2007-05-06T19:41:06Z")

</div>

Hi:

For some reason I can’t figure this out. I am creating an input text field. I want the text that the user inputs to be assigned to a variable. For some reason the user can only input text if I put a text property in. So i set the variable to have a starting value. However when the user input does not change the variable, so it still comes up as the original value.

this.createTextField(“pic3Tag”, p++, 5, 170, 250, 100);  
pic3Tag.type = “input”;  
pic3Tag.border = true;  
pic3Tag.background = true;  
pic3Tag.multiline = true;  
pic3Tag.text = myTag;  
pic3Tag.embedFonts = true;  
pic3Tag.variable = myTag;  
pic3Tag.setTextFormat(textFormat);

i’m so confused.
