Thanks for the response Ade. I've added the following to the page and
disabled the 'required' element from the CF input fields the code below
doesn't appear to work at all.
<script language="JavaScript" type="text/javascript"
src="/CFIDE/scripts/cfform.js"></script>
<script language="JavaScript" type="text/javascript">
<!--
function _CF_checkCFForm_1(_CF_this)
{
if (!_CF_hasValue(_CF_this.firstname, "TEXT" ))
{
if (!_CF_onError(_CF_this, _CF_this.firstname,
_CF_this.firstname.value, "Please enter your First name."))
{
return false;
}
}
if (!_CF_hasValue(_CF_this.lastname, "TEXT" ))
{
if (!_CF_onError(_CF_this, _CF_this.lastname,
_CF_this.lastname.value,
"Please enter your last name."))
{
return false;
}
}
if (!_CF_hasValue(_CF_this.email, "TEXT" ))
{
if (!_CF_onError(_CF_this, _CF_this.email,
_CF_this.email.value,
"Please enter your email address."))
{
return false;
}
}
if (!_CF_hasValue(_CF_this.contrib_title, "TEXT" ))
{
if (!_CF_onError(_CF_this, _CF_this.contrib_title,
_CF_this.contrib_title.value, "Please enter the contribution title."))
{
return false;
}
}
if (!_CF_hasValue(_CF_this.theme, "SELECT" ))
{
if (!_CF_onError(_CF_this, _CF_this.theme,
_CF_this.theme.value,
"Please enter the theme that your file addresses."))
{
return false;
}
}
if (!_CF_hasValue(_CF_this.contrib_type, "SELECT" ))
{
if (!_CF_onError(_CF_this, _CF_this.contrib_type,
_CF_this.contrib_type.value, "Please enter the contribution type."))
{
return false;
}
}
return true;
}
//-->
</script>
Colin Coles
ICT Development Manager
John Cabot City Technology College
Tel 0117 976 3000 Ext 2112
Mobile: 07734395347
E Mail: [EMAIL PROTECTED]
Alt: [EMAIL PROTECTED]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Purchase Dreamweaver with Homesite Plus from House of Fusion, a Macromedia
Authorized Affiliate and support the CF community.
http://www.houseoffusion.com/banners/view.cfm?bannerid=54
Message: http://www.houseoffusion.com/lists.cfm/link=i:15:707
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/15
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:15
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54