From: http://spservices.codeplex.com/discussions/391787
Add an "all children if no parent selected" option.
_____________________
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.
Add an "all children if no parent selected" option.
_____________________
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.