on 01-12-2010 8:52 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.