I have a cfform flash in an application. I want to be able to set the
required="yes" on a form field after a user checks the checkbox above it. SO
for
example, if the user checks the "I have my keys" box, then the "keydate" form
field becomes required.
I've tried it the same way for the enable attribute, but I get error that
required attribute is not boolean like the enable attribute.
(enabled="{haskeys.selected ? true : false}"). I was using this for enable the
field, but then I wasn't sure how to use this code if the form is being
prepopulated from a query and the checkbox is already checked?
<cfform action="" method="POST" name="myform" width="850" format="Flash" >
<cfinput type="Checkbox" name="haskeys" label="I have my keys" visible="Yes"
enabled="Yes">
<cfinput type="DateField" name="keydate" width="100" label="Date My keys were
Provided" required="" size="20" visible="Yes" value"">
<cfinput type="submit" value="Submit" name="submit">
</cfform>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:318102
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4