# Help \*Form Checking\*

**URL:** https://forum.kirupa.com/t/help-form-checking/229817
**Category:** flash
**Created:** [June 20, 2007, 12:55pm UTC](https://forum.kirupa.com/t/help-form-checking/229817 "2007-06-20T12:55:04Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jasondefra](https://avatars.discourse-cdn.com/v4/letter/j/c5a1d2/32.png) [@jasondefra](https://forum.kirupa.com/u/jasondefra)
#### Post date: [June 20, 2007, 12:55pm UTC](https://forum.kirupa.com/t/help-form-checking/229817/1 "2007-06-20T12:55:04Z")

</div>

Hi all, I’m in the process of scripting out an error checking function(s) to fish out incorrectly inputed text fields. For example, in a First Name text box, I want to make actionscript shoot the user to frame 2 (the ‘Incorrect Format Please Try Again’ frame) if they insert any numbers or symbols into that particular text box (e.g. Jason1, J4son, ]ason). All of the text boxes in the scene are drag/drop/resizes from the components window (Components/User Interface/TextInput). I feel like I did this for a class a few years ago, but I don’t have many of my old work files and I can’t figure out how to do this (intuition evading me on something as seemingly simple as this is almost embarrassing). Any help or links(to tutorials) would be much appreciated.

if (fname.text _has a number or symbol in it_){  
\_\_\_gotoAndStop(2);  
\_\_\_trace(“Stop being a noob, Jason”);  
}else{  
\_\_\_gotoAndStop(3);  
\_\_\_trace(“Addaboy!”);  
}

It should look something like this with the exception of the _has a number or symbol_ part, that’s what I’m stuck on. Thanks for any help.
