House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home / Groups / ColdFusion Flash (CF-Flash)

dynamically set required attribute in cfform flash

Author:
Eileen Collins
01/16/2009 03:12 PM

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. <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>


Search cf-flash

February 11, 2012

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
       1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29