When visible is set to false set the height to a negative number.

-----Original Message-----
From: Andy Jarrett [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 20, 2006 6:37 AM
To: CF-Talk
Subject: The visible attribute with Flash forms

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



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/cf_lists/message.cfm/forumid:4/messageid:247185
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to