Regarding the code you pasted, you can simply do this:

<cfparam name="lengthOfEmploy" default="NA">

If that variable is a form variable you should be scoping it that way.

Mike


-----Original Message-----
From: Torrent Girl [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 24, 2005 2:09 PM
To: CF-Newbie
Subject: Need help - deadline 5pm 

Here is my orginal post:

(I can send you the code offline)


Hello all. 

I am creating a form with a lot of fields. Some are required and some are
not. The ones that are not 

A fellow developer was trying to explain to me a way to set a form fields to
"" so they won't cause an error, but no one GIVE SYNTAX EXAMPLES!! (sorry
had to scream) 

Can you guys/gals help me? 

Here is what I have (which doesn't seem to work) 


<cfif '#lengthOfEmploy#' EQ "">
  <cfset '#lengthOfEmploy#' EQ "NA">
</cfif> 

Thanks
TGirl 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Purchase Captivate from House of Fusion, a Macromedia Authorized Affiliate and 
support the CF community.
http://www.houseoffusion.com/banners/view.cfm?bannerid=52

Message: http://www.houseoffusion.com/lists.cfm/link=i:15:1216
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

Reply via email to