This project has moved. For the latest updates, please go here.

SPCascadeDropdowns - show all children when parent empty?

Mar 21, 2014 at 3:19 PM
When using the SPCascadeDropdown, is there a way to have the child dropdown show all possible values when the parent value is blank?

Fantastic suite of functions. Thanks for all of your obvious hard work!
Mar 21, 2014 at 3:39 PM
Short answer: no.

Longer answer: the reason for this is that it would give the user the ability to circumvent the relationship, which would defeat the whole purpose.

You're welcome!

Mar 21, 2014 at 3:52 PM
Thanks for the prompt reply. This reason makes complete sense.

I'm sure you gleaned this from my question, but I'd like to enforce the relationship when the user chooses a parent, but allow the dropdown to be "looser" and show all child options if the user does not choose a parent.

Do you have any thoughts on how I can accomplish this, perhaps by exploiting the completefunc option?

Thanks again - John
Mar 21, 2014 at 4:00 PM
You could try not invoking the SPCascadeDropdown function until the user selects a parent value. Once you do invoke it, it can't be turned off.

Mar 21, 2014 at 7:30 PM
That's an interesting idea. I'll have to give some thought as to how much flexibility I really need in the interface. I'll reply here if I come up with anything extra creative. Thanks for your help.
  • John