|
Mailing Lists
|
Home /
Groups /
ColdFusion Talk (CF-Talk)
The visible attribute with Flash forms
Does anyone know how to remove the white gap created when you setAndy Jarrett 07/20/06 08:38 A When visible is set to false set the height to a negative number.Kelly Keith 07/20/06 11:09 A Cheers !Andy Jarrett 07/23/06 06:56 P Does anyone know how to remove the white gap created when you set visible="false" in <cfform>. The idea is that based on a selected the form will show 2 different radio buttons. With HTML and CSS this would be easy, but I can't see how to do this with the Flash Forms. I have the following bit of code as an example of what I am trying to do <cfform format="flash" name="myform"> <cfselect name="myfield" id="myfield"> <option value="XXXXX">Yes</option> <option value="YYYYY">No</option> </cfselect> <cfinput type="radio" name="payment_type" id="payment_type" value="1" label="Payment option 1" visible="{(myfield.text == 'Yes')?true:false}"/> <cfinput type="radio" name="payment_type" id="payment_type" value="2" label="Payment option 2" visible="{(myfield.text == 'Yes')?true:false}"/> <cfinput type="radio" name="payment_type" id="payment_type" value="3" label="Payment option 3" visible="{(myfield.text == 'No')?true:false}"/> <cfinput type="radio" name="payment_type" id="payment_type" value="4" label="Payment option 4" visible="{(myfield.text == 'No')?true:false}"/> </cfform> Cheers Andy J www.andyjarrett.co.uk When visible is set to false set the height to a negative number. Does anyone know how to remove the white gap created when you set visible="false" in <cfform>. The idea is that based on a selected the form will show 2 different radio buttons. With HTML and CSS this would be easy, but I can't see how to do this with the Flash Forms. I have the following bit of code as an example of what I am trying to do <cfform format="flash" name="myform"> <cfselect name="myfield" id="myfield"> <option value="XXXXX">Yes</option> <option value="YYYYY">No</option> </cfselect> <cfinput type="radio" name="payment_type" id="payment_type" value="1" label="Payment option 1" visible="{(myfield.text == 'Yes')?true:false}"/> <cfinput type="radio" name="payment_type" id="payment_type" value="2" label="Payment option 2" visible="{(myfield.text == 'Yes')?true:false}"/> <cfinput type="radio" name="payment_type" id="payment_type" value="3" label="Payment option 3" visible="{(myfield.text == 'No')?true:false}"/> <cfinput type="radio" name="payment_type" id="payment_type" value="4" label="Payment option 4" visible="{(myfield.text == 'No')?true:false}"/> </cfform> Cheers Andy J www.andyjarrett.co.uk
|
May 16, 2012
|
Latest Fusion Authority Articles
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||