The accordion and tabnavigator groups do support an id attribute. So you can
set the enabled="" property from actionscript. However the other groups do
not. This is a good enhancement request. 

---nimer

-----Original Message-----
From: TJ Hilton [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 01, 2005 12:15 PM
To: CF-Talk
Subject: cfformgroup visible=false with actionscript...

Hey All

I'm trying to figure out how to toggle the visibility of a cfformgroup
control using actionscript. The problem is that CF doesn't accept name or id
attributes for the cfformgroup tag. So how do i reference the control in
actionscript?

The error on the parsed page is: 

Errors, warnings or exceptions were found when compiling
/cmsnet/whitesheet/test.cfm. Visit the online Flex documentation or API
reference for further information.

1 Error found.

Error C:\Inetpub\wwwroot\cmsnet\whitesheet\tes.mxml:378
There is no property with the name 'myship'. 


CODE: 

<cfform name="frm_expReq" format="Flash" accessible="yes"
preservedata="yes" width="800" height="600">
                
                <cfformgroup type="panel" label="Expenditure Request">
                <!--- start outter panel --->
                                
                        <cfformgroup type="hbox">
                        <!--- start top hbox containing vendor and shipping
info --->
                                <cfformgroup type="panel" label="Vendor"
width="250">
                                <!--- start left box containing vendor info
--->
                                        <cfformgroup type="horizontal">
                                                <cfformitem
type="html"><b>Name:</b></cfformitem>
                                                <cfinput name="VendorName"
required="yes" width="150" />
                                        </cfformgroup>
                                        <cfformgroup type="horizontal">
                                                <cfformitem
type="html"><b>Address</b>:</cfformitem>
                                                <cfinput
name="VendorAddress1" required="yes"  width="150" />
                                        </cfformgroup>
                                        <cfformgroup type="horizontal">
                                                <cfformitem
type="html"></cfformitem>
                                                <cfinput
name="VendorAddress2" required="no"  width="150" />
                                        </cfformgroup>
                                        <cfformgroup type="horizontal">
                                                <cfformitem
type="html"><b>City</b>:</cfformitem>
                                                <cfinput name="VendorCity"
required="yes"  width="150" />
                                        </cfformgroup>
                                        <cfformgroup type="horizontal">
                                                <cfformitem
type="html"><b>State</b>:</cfformitem>
                                                <cfinput name="VendorState"
required="yes" width="150" />
                                        </cfformgroup>
                                        <cfformgroup type="horizontal">
                                                <cfformitem
type="html"><b>Zip</b>:</cfformitem>
                                                <cfinput name="VendorZip"
required="yes"  width="150" />
                                        </cfformgroup>
                                        <cfformgroup type="horizontal">
                                                <cfformitem
type="html"><b>Phone</b>:</cfformitem>
                                                <cfinput name="VendorPhone"
required="no"  width="150" />
                                        </cfformgroup>
                                </cfformgroup>
                                <!--- end left box containing vendor info
--->
                                
                                <cfformgroup type="panel" label="Ship To"
width="250">
                                <!--- start right box containing shipping
info --->
                                <cfinput type="button"
onclick="myship.visible=false;" value="Hide Shipping" name="but_test" />
                                        <cfformgroup type="horizontal">
                                                <cfformitem
type="html"><b>Name:</b></cfformitem>
                                                <cfinput name="ShippingName"
required="yes"  width="150" />
                                        </cfformgroup>
                                        <cfformgroup type="horizontal">
                                                <cfformitem
type="html"><b>Address</b>:</cfformitem>
                                                <cfinput
name="ShippingAddress1" required="yes"  width="150" />
                                        </cfformgroup>
                                        <cfformgroup type="horizontal">
                                                <cfformitem
type="html"></cfformitem>
                                                <cfinput
name="ShippingAddress2" required="no"  width="150" />
                                        </cfformgroup>
                                        <cfformgroup type="horizontal">
                                                <cfformitem
type="html"><b>City</b>:</cfformitem>
                                                <cfinput name="ShippingCity"
required="yes"  width="150" />
                                        </cfformgroup>
                                        <cfformgroup type="horizontal">
                                                <cfformitem
type="html"><b>State</b>:</cfformitem>
                                                <cfinput
name="ShippingState" required="yes" width="150" />
                                        </cfformgroup>
                                        <cfformgroup type="horizontal">
                                                <cfformitem
type="html"><b>Zip</b>:</cfformitem>
                                                <cfinput name="ShippingrZip"
required="yes"  width="150" />
                                        </cfformgroup>
                                        <cfformgroup type="horizontal">
                                                <cfformitem
type="html"><b>Phone</b>:</cfformitem>
                                                <cfinput
name="ShippingPhone" required="no"  width="150" />
                                        </cfformgroup>
                                </cfformgroup>
                                <!--- end right box containing shipping info
--->
                                
                                <cfformgroup type="panel" label="myship"
id="myship" name="myship"
width="250" visible="yes" enabled="yes">
                                        <cfformitem type="text">STUFF
HERE</cfformitem>
                                        <cfinput type="text" name="txt_test"
size="200" />
                                </cfformgroup>
                                
                        </cfformgroup>
                        <!--- top hbox containing vendor and shipping info
--->
                
                <cfinput type="submit" name="sub_form" value="Submit!" />
                </cfformgroup>
                <!--- end outter panel --->


--
TJ Hilton
[EMAIL PROTECTED]



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:197585
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to