Code to remove .SPServices.SPCascadeDropdowns

Mar 17 at 2:21 PM
Hi Marc
Apologies if this is covered elsewhere but I couldn't find anything related to my question.

I have a requirement to dynamically apply a "cascade" to a set of lookup fields based on the value of a checkbox on the form.

During form load, I can obviously detect the state of the check box and either run or not run the SPServices.SPCascadeDropDowns code. What I'm trying to do is dynamically remove the SPSerices.SPCascadeDropDowns hooks into the lookup fields and cause the lookups to reload in their normal state (i.e. showing all options) from the change event handler of the check box.

Is there an easy way to do this?

Thanks and best regards
Nick
Coordinator
Mar 17 at 4:07 PM
Nick:

Sorry, but there's no "off" switch on most of the SPServices functions like SPCascadeDropdowns. If you come up with something, please post back!

M.
Mar 17 at 4:54 PM
Hi Marc.
No worries. I will probably have to look at this unless we can accept a postback type scenario. It won't be in the next few days though. I'll definitely post it here if I get a solution.

Cheers
Nick.