Thanks for the response.... starting to understand a bit...a few more questions though... Basically I have two drop down menus, one parent and one child, based on the selection in the parent, the child should change.
1. Should the ftType be set to string if I'm trying to use a drop down? 2. I don't understand how creating this cfc in the packages/formtools folder is tied specifically to the account <cfproperty> declaration. How does it know which field? If I had other dependent fields on the form that also used ftWatch, how does it know which field to map to? -West On Mar 6, 6:02 am, Sean Coyne <[email protected]> wrote: > 1. Actually you add it to the formtool. So in this case, in your > cfproperty tag for "account" you will want to specify ftType="string". Then > you will want to extend the string formtool. You would create a formtools > folder in your project's packages folder. Then create a file called > string.cfc, extending farcry.core.packages.formtools.string. You would add > your ftWatch functionality, as shown in the example (though don't use the > javascript in the example as the Ext stuff has been removed in favor of > jQuery), and be sure to call super.edit() so that core's string.cfc edit > method is called. > > 2. The formtool form will call it when the field is drawn on the form. By > overriding the edit method above, you can add your own javascript > functionality that reacts when the form changes. -- You received this message cos you are subscribed to "farcry-dev" Google group. To post, email: [email protected] To unsubscribe, email: [email protected] For more options: http://groups.google.com/group/farcry-dev -------------------------------- Follow us on Twitter: http://twitter.com/farcry
