Hello Rich,

Here is one way:

     <input type="hidden" name="fieldname_required" value="The Fieldname was
not found.">

If the <OPTION VALUE=""> is selected the message will be returned.

That is the easy way.  Otherwise use javascript.

<script language="JavaScript">
function checkdata()
{
       if (document.form.fieldname.value.length == 0) {
         alert ("Please enter fieldname.");
         return false;
 }
  return true;
}
</script>

Good Luck!

John

----- Original Message -----
From: "Rich Tretola" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, August 28, 2001 3:02 PM
Subject: Select


> Does anyone have a way to require a selection of a regular select tag?  I
> know that cfselect will do this but I can't use cfselect.
>
> Thanks,
> Rich
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to