# If then on form checking vars

**URL:** <https://forum.kirupa.com/t/if-then-on-form-checking-vars/216944>\
**Category:** Uncategorized\
**Created:** [February 21, 2007, 9:10pm UTC](https://forum.kirupa.com/t/if-then-on-form-checking-vars/216944 "2007-02-21T21:10:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Multi\_Task](https://avatars.discourse-cdn.com/v4/letter/m/c6cbf5/32.png) [@Multi\_Task](https://forum.kirupa.com/u/Multi_Task)\
**Post date:** [February 21, 2007, 9:10pm UTC](https://forum.kirupa.com/t/if-then-on-form-checking-vars/216944/1 "2007-02-21T21:10:53Z")

</div>

Question about cycling through email form and checking first if email drop has been selected then moving onto if adding a country has been filled in, but I want to have drop menu checked first and then if nothing is checked then if the add country is filled in then go ahead and proceed otherwise return Alert.

country is dropdown  
new\*\*\*\* is new country text field

```auto

if (country.selectedIndex == false) {
     Selection.setFocus(country);
     Alert.show("Please select your country or add country.", "Error", Alert.OK);
     return false;
 } else {
  if (new ****.text.length == true) {
 
 

  }
 }

```

Can anyone give me some hinty. thanks in advance.  
MT
