cancel
Showing results for 
Search instead for 
Did you mean: 

Dependent Value helps in Adobe forms

Former Member
0 Kudos

Hello.

I have designed adobe form and i have 2 drop downlist boxes. Depending on selection of first ddlb value, i want the corresponding values of Field 2.

I want to achieve this using java script . Any thoughts how can i achieve this ? a

I am able to read the first node and get the values and but how to filter and fill the second value help in offline mode and using java script .

Any thoughts would really help.

thanks,

Saujanya

Accepted Solutions (0)

Answers (3)

Answers (3)

ChrisSolomon
Active Contributor
0 Kudos

I LOVE seeing this asked again and again and again......and again. This is pretty basic Javascript folks. Look at just about any car dealer web site and you can just grab their examples (ie. car make->model dependent drop-downs). Do people ever do a little work themselves before asking here? Is the search here that hard? Is searching Google harder? It boggles my mind.

OttoGold
Active Contributor
0 Kudos

Hello, I wonder how did you solve your problem. Could you please share your solution with us? Thank you, Otto

p.s.: maybe this thread can help you regarding the problem:

Former Member
0 Kudos

Hi,

Populate the first DDLB with the values. In initialize event, store all the combinations in a different node.

on select the first DDLB, read the value and then loop and get the corresponding list from the combination node. and then store this values in the second DDLB and bind it to the second DDLB.

This way, the issue is resolved.

Thanks,

Saujanya

OttoGold
Active Contributor
0 Kudos

Hello,

first: please search the forum before you ask your own question, this has been answered many times in last 3 months. Few of the answers were very good with all necessary details.

second: you need to

1) get the index of the drop A, I think that is something like var index = drop.selectedIndex (use app.aler(index) to print the catched value, it is a-l-e-r-t but I am not allowed to write it in here because it distracts the web page scripts.

2) change the values of drop B, probably a) clear all b) use your string variable or array to get all the values c) loop at this list and filter the items you need d) add every needed item to drop B.

Regards, Otto