Or use cfparams to make sure they're there and then check the len()

<cfparam name="form.startdatename22" default="" />

<cfif len(form.startdatename22)>
     it's something other than nothing
<cfelse>
     it's nothing
</cfif>

On Wed, Aug 17, 2011 at 3:12 PM, Rick Faircloth <[email protected]>wrote:

>
> Try removing the #'s from <cfif not isDefined(#FORM.StartDateName22#)>
>
> Also, remove the space right after isDefined...
>
> Rick
>
> -----Original Message-----
> From: Mo Lay [mailto:[email protected]]
> Sent: Wednesday, August 17, 2011 4:01 PM
> To: cf-newbie
> Subject: <cfif isDefine not working !!!
>
>
> Hi Guys,
>
> i need to ask if the #FORM.fieldname# element name existor not inorder to
> jump to the next one that exist ?
>
>
>
> i am using the following code :FYI : StartDateName22 is a javascript
> dynamic
> generated Textbox
>
> <cfif not isDefined (#FORM.StartDateName22#)>
> <cfoutput>
> Elemnt 2,2 is not defined
> </cfoutput>
> <cfelse>
> <cfoutput>
> Element 2,2 is defined as: #FORM.StartDateName22#
> </cfoutput>
> </cfif>
>
> thank you
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-newbie/message.cfm/messageid:5468
Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-newbie/unsubscribe.cfm

Reply via email to