SPCascadeDropdowns - show all children when parent empty?

Mar 21 at 4: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!
Coordinator
Mar 21 at 4: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!

M.
Mar 21 at 4: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
Coordinator
Mar 21 at 5: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.

M.
Mar 21 at 8: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