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

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

The visible attribute with Flash forms

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Andy Jarrett
07/20/2006 08:38 AM

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

Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Kelly Keith
07/20/2006 11:09 AM

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

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group

<< Previous Thread Today's Threads Next Thread >>

Search cf-talk

May 16, 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 30 31     

Designer, Developer and mobile workflow conference