PDA

View Full Version : How to use Set Selected with Multiple Dynamic Dropdowns ?


Dave Buchholz
01-07-2011, 04:38 AM
I have set up a Test Page here (http://www.i-cre8.com/cars/)

I have pre-selected Ford in the manufacturer list and I would then like the Model Focus (value = 3) and the Engine Size 1.3 (value = 2) to be selected using the Set Selected in List behavior but I am unable to get this to work using the behaviours on the body tag using onLoad. What am I doing wrong ?

Thanks

Jason Byrnes
01-07-2011, 07:04 AM
you need to add the Populate list from array behavior to the body onload event as well to populate the child lists with the selections relating to ford.

your events should be:
1) set selected in list manufacturer = 1
2) Populate list from array, parent list manufacturer, child list model
3) Set Selected in list model = 3
4) Populate list from array, Parent list = model, Child list = engine
5) Set Selected in list engine = 2

Dave Buchholz
01-07-2011, 07:12 AM
Got it, thanks.

Jason Byrnes
01-07-2011, 07:35 AM
you're welcome.