I have form that is calling itself for submission, and at the
top of the
form, I have:
<cfif structkeyexists(url,"m")>
<cfswitch expression="#m#">
<cfcase value="0">
<cfinvoke component="compoents.post" method="infoMail">
<cfinvokeargument name="fName" value="#form.fName#">
<cfinvokeargument name="lName" value="#form.lName#">
<cfinvokeargument name="Address1"
value="#form.Address1#">
<cfinvokeargument name="Address2"
value="#form.Address2#">
<cfinvokeargument name="City" value="#form.City#">
<cfinvokeargument name="State" value="#form.State#">
<cfinvokeargument name="Zip" value="#form.Zip#">
<cfinvokeargument name="Plus4" value="#form.Plus4#">
<cfinvokeargument name="Email" value="#form.Email#">
<cfinvokeargument name="Info" value="#form.Info#">
<cfinvokeargument name="Events" value="#form.Events#">
<cfinvokeargument name="Class" value="#form.Class#">
<cfinvokeargument name="News" value="#form.News#">
</cfinvoke>
</cfcase>
<cfcase value="1">
</cfcase>
</cfswitch>
</cfif>
The problem is that if a checkbox on the form isn't selected,
then I get:
Element EVENTS is undefined in FORM
How can I get around this?? On the CFC I have it setting a
default
value of 0, and it isn't required.....