how to populate a text box from make 2 linked drop down list

J

jy

Hello,
I have 2 Non repeating drop down list box and a text box that is using an xml
data source. When the user select an item from the first drop down box, the
second drop down list will only have the choices that pertains to the frist
drop down list. i would like to my text box be populated the with the
matching item.

Example:
Drop-down list box 1 has the following data: item1, item2, item3
Drop-down list box 2 has the following data: item1, item2, item3, item4,
item5, item6, item7, item8, item9.
text box: item1, item2, item3, item4, item5, item6, item7, item8, item9.

the results should look like this:

Drop-down list box 1 item1 + Drop-down list box 2 item1 = text box item 1
Drop-down list box 1 item1 + Drop-down list box 2 item2 = text box item 2
Drop-down list box 1 item1 + Drop-down list box 2 item3 = text box item 3

Drop-down list box 1 item2 + Drop-down list box 2 item4 = text box item 4
Drop-down list box 1 item2 + Drop-down list box 2 item5 = text box item 5
Drop-down list box 1 item2 + Drop-down list box 2 item6 = text box item 6

Drop-down list box 1 item3 + Drop-down list box 2 item7 = text box item 7
Drop-down list box 1 item3 + Drop-down list box 2 item8 = text box item 8
Drop-down list box 1 item3 + Drop-down list box 2 item9 = text box item 9

hope someone can help
 
P

Paresh

Hello,
I have 2 Non repeating drop down list box and a text box that is using an xml
data source. When the user select an item from the first drop down box, the
second drop down list will only have the choices that pertains to the frist
drop down list. i would like to my text box be populated the with the
matching item.

Example:
Drop-down list box 1 has the following data: item1, item2, item3
Drop-down list box 2 has the following data: item1, item2, item3, item4,
item5, item6, item7, item8, item9.
text box: item1, item2, item3, item4, item5, item6, item7, item8, item9.

the results should look like this:

Drop-down list box 1 item1 + Drop-down list box 2 item1 = text box item 1
Drop-down list box 1 item1 + Drop-down list box 2 item2 = text box item 2
Drop-down list box 1 item1 + Drop-down list box 2 item3 = text box item 3

Drop-down list box 1 item2 + Drop-down list box 2 item4 = text box item 4
Drop-down list box 1 item2 + Drop-down list box 2 item5 = text box item 5
Drop-down list box 1 item2 + Drop-down list box 2 item6 = text box item 6

Drop-down list box 1 item3 + Drop-down list box 2 item7 = text box item 7
Drop-down list box 1 item3 + Drop-down list box 2 item8 = text box item 8
Drop-down list box 1 item3 + Drop-down list box 2 item9 = text box item 9

hope someone can help

For setting the textbox's data, you can simply set the textbox text =
dropdown 2's selected item, using rules

For setting dropdown2's list depending on dropdown1's item selection,
you will need to again make use of rules to query a dedicated
dataconnection that accepts a parameter (item selected in dropdown 1)
and returns a list of items for dropdown 2.

Do let me know if this helps.

thanks,
Paresh
 

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