These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

drop down options

kramirez
Registered: Mar 4 2009
Posts: 10

I want my ship Via drop down box to look like this:

SHIP VIA
01 UPS
02 FEDEX
03 CON-WAY TRANSP.

But after you choose, it will only show the code (01 or 02) SHIP VIA
01

is there any way to do this?

My Product Information:
Acrobat Pro 9.0, Windows
Dimitri
Expert
Registered: Nov 1 2005
Posts: 1389
Hi kramirez,

Absolutely you can do that. Here are two articles from the Learning Center about programming for List and Combo fields that should help you out-

http://www.acrobatusers.com/tutorials/2007/js_list_combo_livecycle/
http://www.acrobatusers.com/tutorials/2007/10/list_and_combo_in_lc

Hope this helps,

Dimitri
WindJack Solutions
www.pdfscripting.com
www.windjack.com
kramirez
Registered: Mar 4 2009
Posts: 10
what if i want to have just one field for my ship via menu?

SHIP VIA
01 UPS
02 FEDEX
03 CON-WAY TRANSP.

this option is just in one combo field.

Example: if you choose 01 UPS , the ship/via menu will only show 01

SHIP VIA
01
Dimitri
Expert
Registered: Nov 1 2005
Posts: 1389
Hi kramirez,

Not sure what you mean... those articles show how to create one field that is a drop down list of the different shipping methods- the user picks one then another single field can be populated with 01, 02, or whatever you want it to be. Read those articles- I think they explain it fairly well and there are downloadable PDFs with code you can examine to see how it is done.

If that is not what you meant then I guess I don;t understand your post.

Hope this helps,

Dimitri
WindJack Solutions
www.pdfscripting.com
www.windjack.com
kramirez
Registered: Mar 4 2009
Posts: 10
Each shipping method we have has a corresponding code. 01 is the code for UPS, 02 for FEDEX. The code together with the shipping method should be shown on just a single field.. what i want to happen is, lets say you chose 01 UPS, only the code which is 01 will be shown and not 01 UPS.

is it still confusing?
Dimitri
Expert
Registered: Nov 1 2005
Posts: 1389
Hi Kramirez,

OK- I see now. You want the user to choose from the drop down list and then have the value change in the same dropdown field. I've never seen that particular use before and it could be quite confusing to the person filling it out.....but it should be possible to do with a custom script that will simply change the value shown in the field once the data is comiitted (user makes a choice and exits the field).

Hope this helps,

Dimitri
WindJack Solutions
www.pdfscripting.com
www.windjack.com
kramirez
Registered: Mar 4 2009
Posts: 10
Ok.. thanks for your help..