# Reset button

**URL:** <https://forum.kirupa.com/t/reset-button/193868>\
**Category:** Uncategorized\
**Created:** [July 18, 2006, 9:52pm UTC](https://forum.kirupa.com/t/reset-button/193868 "2006-07-18T21:52:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![puthem1st](https://avatars.discourse-cdn.com/v4/letter/p/ecb155/32.png) [@puthem1st](https://forum.kirupa.com/u/puthem1st)\
**Post date:** [July 18, 2006, 9:52pm UTC](https://forum.kirupa.com/t/reset-button/193868/1 "2006-07-18T21:52:25Z")

</div>

Hi, can anyone see what is wrong with my code. I am trying to clear an input text field once reset is pressed.

I currently have

on (release) {  
\_root.textfield="";  
}  
on the reset button

and on the 1st frame of the reset button  
function clearForm() {  
textfield.text="";  
}

Do I need both? I have tried 1 without the other and still no results. Thanks for your help.
