# Need help passing form validation message

**URL:** <https://forum.kirupa.com/t/need-help-passing-form-validation-message/290785>\
**Category:** flash\
**Created:** [June 19, 2009, 4:14pm UTC](https://forum.kirupa.com/t/need-help-passing-form-validation-message/290785 "2009-06-19T16:14:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![somnamblst](https://avatars.discourse-cdn.com/v4/letter/s/a4c791/32.png) [@somnamblst](https://forum.kirupa.com/u/somnamblst)\
**Post date:** [June 19, 2009, 4:14pm UTC](https://forum.kirupa.com/t/need-help-passing-form-validation-message/290785/1 "2009-06-19T16:14:32Z")

</div>

I have the following which produces a trace if the user does not type an email address when testing locally, but nothing when testing outside of Flash.

```auto
//handle onValidation
myForm.onValidate = function(infoObj:Object):Void {
 if (infoObj.success) {
  trace("Form is Valid for Submission");
  //this line actually submits the form
  this.submitForm(2);
  gotoAndStop("success");
 } else {
  trace("Validation Failed. Please check your input");
 }
};

```
