Quantcast
Channel: jQuery Library for SharePoint Web Services
Viewing all articles
Browse latest Browse all 6517

Edited Feature: SPCascadeDropdown when no Parent is selected [10095]

$
0
0
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.

Viewing all articles
Browse latest Browse all 6517

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>