Code to remove .SPServices.SPCascadeDropdowns

Mar 17, 2014 at 3: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
Mar 17, 2014 at 5:07 PM

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

Mar 17, 2014 at 5: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.