Second lookup (Branch) is multilookup

Oct 5, 2011 at 8:17 PM

Hello,

I've managed to adapt the script to make it work even when second lookup (second param) is a multilookup.

For this you need to replace the line:

 

var ccd1 = new cascadeDropdowns("Market", "Stores", "Market", "Stores", "LinkTitle");

 

with

 

var ccd1 = new cascadeDropdowns("Market", "Stores possible values", "Market", "Stores", "LinkTitle");

Then edit line 152 in spcd.js and add another if condition like this:
if(CascadingDropdown.childLookup.Object.options.length > 0 && CascadingDropdown.childLookup.Object.options[0].value == 0) startAt = 1;


Thats it, is working on SPF 2010 but only on IE and FF browser, not in Chrome.

 

 

Nov 17, 2011 at 9:46 AM

Did you ever make this work for Chrome?

Regards,

Gazz

Nov 17, 2011 at 10:58 AM

Hi,

It was not working with adjustments as above, I guess it can make it work if you are willing to dig in and know javascript. It was not a requirement in my case to have it run in Chrome. Sorry.

OBP

Nov 17, 2011 at 1:46 PM

I don't really require it to work in Chrome but it would have been nice to support another browser.

Thanks anyways,

Gazz