# Required fields in a flash feedback form

**URL:** <https://forum.kirupa.com/t/required-fields-in-a-flash-feedback-form/191233>\
**Category:** Uncategorized\
**Created:** [June 18, 2006, 11:28pm UTC](https://forum.kirupa.com/t/required-fields-in-a-flash-feedback-form/191233 "2006-06-18T23:28:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![atlnyc77](https://avatars.discourse-cdn.com/v4/letter/a/9fc348/32.png) [@atlnyc77](https://forum.kirupa.com/u/atlnyc77)\
**Post date:** [June 18, 2006, 11:28pm UTC](https://forum.kirupa.com/t/required-fields-in-a-flash-feedback-form/191233/1 "2006-06-18T23:28:06Z")

</div>

Here is the following code:

this.contactForm.submitBtn.onRelease = function() {  
if (contactForm.userEmail.text == “” || contactForm.userName.text == “” ||  
contactForm.userPhone.text == “”) {  
gotoAndStop(“error”);  
} else {  
gotoAndStop(“correct”);  
}  
}

This will require the user to input all requested fields in a form. but the required fields that i want when a person enters is their email and name.  
I want the users cell phone to be optional, so would this work

this.contactForm.submitBtn.onRelease = function() {  
if (contactForm.userEmail.text == “” || contactForm.userName.text == “”) {  
gotoAndStop(“error”);  
} else {  
gotoAndStop(“correct”);  
}  
}

I already to send the form results to my email defined.  
Thanks,  
Gabriel
