# Form validation help!?

**URL:** https://forum.kirupa.com/t/form-validation-help/237066
**Category:** Uncategorized
**Created:** [August 27, 2007, 1:50am UTC](https://forum.kirupa.com/t/form-validation-help/237066 "2007-08-27T01:50:11Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Flash\_Man1](https://avatars.discourse-cdn.com/v4/letter/f/8797f3/32.png) [@Flash\_Man1](https://forum.kirupa.com/u/Flash_Man1)
#### Post date: [August 27, 2007, 1:50am UTC](https://forum.kirupa.com/t/form-validation-help/237066/1 "2007-08-27T01:50:11Z")

</div>

Hey all,

I have a form and I have a checkbox (and when this is checked i need to make sure that the textfield also has text in it before submitting)

Any ideas on a quick easy way to do this?

Thanks in advance 🙂

PS here is my code snippet of what i’ve tried:

```auto
if(form1.check2.checked==true){
alert("Please enter your email address");
return false;
} else if(form1.email.value != ""){
return true;
}

//this sits inside another function.

```
