SPCascadeDropdown when no Parent is selected

Aug 15, 2012 at 10:27 PM

First off Marc, love SPServices.
RE: SPCascadeDropdowns, I have a situation where I have a parent list (Organisation) and a child list (Contacts). Setting up the cascade so that Contacts (child) that are associated with an Organisation (Parent) works fine. But sometimes a contact does not belong to an organisation. How do I get the Contacts dropdown to show only those contacts that are not associated with an organisation when no organisation is selected? At the moment the default is: if no Organisation is selected, no Contacts are shown?

I have thought of a dummy entry for 'No Organisation' in the parent list but I'm sure you can think of a more elegant way...

I've also tried an if statement checking for :selected.val() = "0" but I appear to have created an endless loop.

Would appreciate your thoughts.

Coordinator
Aug 16, 2012 at 11:10 PM

SPCascadeDropdowns only shows children that belong to a parent. There's no "all if none" option, though perhaps there should be!

M.

Coordinator
Aug 16, 2012 at 11:10 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.