# FM2004 Form Problem

**URL:** <https://forum.kirupa.com/t/fm2004-form-problem/42736>\
**Category:** flash\
**Created:** [February 12, 2004, 11:29am UTC](https://forum.kirupa.com/t/fm2004-form-problem/42736 "2004-02-12T11:29:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nick\_Toye](https://avatars.discourse-cdn.com/v4/letter/n/82dd89/32.png) [@Nick\_Toye](https://forum.kirupa.com/u/Nick_Toye)\
**Post date:** [February 12, 2004, 11:29am UTC](https://forum.kirupa.com/t/fm2004-form-problem/42736/1 "2004-02-12T11:29:54Z")

</div>

I am trying to produce a simple form. Three input fields:

name  
email  
message

Two buttons

submit  
reset

I have done this kind of thing using FMX, but I can’t seem to get it to a simple thing like reset the field.

I have attached a file, There also does not seem to be much help out there for this.

Any help will be very much appreciated.

Thanks in advance

---

<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 12, 2004, 1:42pm UTC](https://forum.kirupa.com/t/fm2004-form-problem/42736/2 "2004-02-12T13:42:51Z")

</div>

Give instance names to the 3 input text fields, like these:

name\_txt  
email\_txt  
message\_txt

Then, apply this script to a new layer named, let’s say, actions:

myButton.onRelease = function(){  
name\_txt.text = “”;  
email\_txt.text = “”;  
message\_txt.text = “”;  
}

Do something similar for submit button:

submitBtn.onRelease = function(){

name = name\_txt.text  
email = email\_txt.text  
message = message\_txt.text

//and then send variables to wherever you want to use them

}

good luck
