Oh and this is wrong too, but it won't cause an error.

And for an FYI anytime you are outputting a CF variable then you use hashes
with a rare exception on some things. But when in code #'s are not needed so
this

               <cfif #qgetinfo.aquamid# eq 1>
                       <cfinput type="Checkbox" name="Aquamid" checked>
               <cfelse>
                       <cfinput type="Checkbox" name="Aquamid">
               </cfif>

becomes

               <cfif qgetinfo.aquamid eq 1>
                       <cfinput type="Checkbox" name="Aquamid"
checked="checked">
               <cfelse>
                       <cfinput type="Checkbox" name="Aquamid">
               </cfif>

Or you could

<cfinput type="Checkbox" name="Aquamid" <cfif
qgetinfo.aquamid>checked="checked"</cfif>
>


On 5/12/07, Pete <[EMAIL PROTECTED]> wrote:
>
> Hi All
>
> I am using flash forms for the first time and so far everything seems to
> be
> working OK, well until I got to having to display radio buttons and
> checkboxes.
>
> I am creating a update form where I read in data from an existing table.
>
> Basically I have in the program:
>
> <cfset aquamid=Trim(qgetinfo.aquamid)>
>
> And then I have:
>
> <cfformgroup type="horizontal">
>                <cfformitem type="text" width="120">Aquamid</cfformitem>
>                <cfif #qgetinfo.aquamid# eq 1>
>                        <cfinput type="Checkbox" name="Aquamid" checked>
>                <cfelse>
>                        <cfinput type="Checkbox" name="Aquamid">
>                </cfif>
>                <cfinput type="Checkbox" name="Aquamid" label="Please check
> for Aquamid">
>        </cfformgroup>
>
> However this is giving me an error and not displaying the page with the
> checkbox being checked.
>
> I look forward to any replies on how this should be done.
>
> Cheers
>
> Pete
>
>
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7
The most significant release in over 10 years. Upgrade & see new features.
http://www.adobe.com/products/coldfusion?sdid=RVJR

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:277807
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to