<cfparam name="form.has_bmw" default="0">

:)

Shan

Shannon Hicks
Senior Developer
[EMAIL PROTECTED]
http://www.duodesign.com

duoDesign eBusiness Accelerator
1007 Church Street, Suite 510
Evanston IL 60201

847-491-3211 direct
847-491-3000 main
847-491-3100 fax


-----Original Message-----
From: Ryan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 01, 2000 4:22 PM
To: Fusebox
Subject: cf_reuseform and checkboxes


As I understand it, when you use CF_reuseform, you code your forms
like <input name=name value="#name#"> and then use cf_reuseform to
default the variables to blank if loading the form for the first time,
or set these variables to what was passed in on a form so you
can redisplay the form (with data filled in) if there were errors.

So how do you code checkboxes using reuseform? I didn't see anything
about it in the fusebox book nor in the txt file that came with the
custom tag. My guess would be:

<input type=checkbox name=has_bmw value=1 <CFIF has_bmw EQ 1>CHECKED</CFIF>>

or maybe even

<input type=checkbox name=has_bmw value=1 <CFIF
IsDefined(has_bmw)>CHECKED</CFIF>>

But, if you call cf_reuseform and pass it action="form"
formfields="name,has_bmw,etc",
and the user didn't check has_bmw the first time through, cf_reuseform
throws
an error because FORM.has_bmw does not exist!

What is one to do?

Ryan

----------------------------------------------------------------------------
--
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.

------------------------------------------------------------------------------
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to