Two dropdown list

I

Infinite

I have two dropdown lists say list A and list B,
I want to do simple thing...

When user change selected index in list A,
selected index of list B should automatically change to same index of list A.

Can any body provide jscript code sample for that..???

Regards,
 
S

Swathi (GGK Tech)

Hi,
Create an xml file which contains ids, list A values, list B values in the
following format.
<RootNode>
<Value>
<ListA>a1</ListA>
<ListB>b1</ListB>
</Value>
<Value>

<ListA>a2</ListA>
<ListB>b2</ListB>
</Value>
<Value>
<ListA>a3</ListA>
<ListB>b3</ListB>
</Value>
</RootNode>

1.Add this xml file as a receive data connection.
2.Go to List A properties.
3.Select look up values from external source.
4.Select this xml in the data source drop down.
5.In the entries, select the Value node in xml.
6.In Value, Display Name select the ListA.
7.Click ok.
8.Go to ListB properties. Repeat the steps 3 to 5.
9.In Value, Display Name select ListB.
10.Now go to List A properties.
11.Click Rules.
12.Click Add Action.
13.Select ‘set a field’s value’ in action drop down.
14.Select Listb field in Field.
15.Click Fx button beside the Value box.
16.Click on Insert a field or Group.
17.Select ListB in secondary data source and Click on filter data.
18.Select List A from secondary data source in first drop down, is equal to
ins econd drop down, main data source Listb in third drop down. Click ok
until all windows gets closed.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top