|
Mailing Lists
|
Home /
Groups /
ColdFusion Talk (CF-Talk)
The visible attribute with Flash forms
Author: Andy Jarrett
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:46885#247436
Cheers !
----- Excess quoted text cut - see Original Post for more -----
Author: Kelly Keith
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:46885#247185
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
Author: Andy Jarrett
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:46885#247166
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 24, 2012
|
Latest Fusion Authority Articles
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||