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

populating fields based on drop down list selection...

emerlin
Registered: Jul 21 2008
Posts: 33
Answered

I am sure I will not ask this question using the right lingo, but here goes.

Is there a way to to have a selection made in a drop down list populate an different field? For example, I would have a drop down box named widgets. The options would be widget A - $10 and Widget B - $20. When the user selects either widget, I would like it's corresponding price to populate the "price" field.

I am then going to have multiple lines and total these. I have played with Exel a little and the import function, but it is not very user friendly. Since my widget prices are not likely to change - I have no real interest in maintaining s separate database anyway. I could just push out a new version of the PDF twice a year and call it done.

Any ideas on an easy way to do this?
Thanks E

My Product Information:
LiveCycle Designer, Windows
Dimitri
Expert
Registered: Nov 1 2005
Posts: 1389
Hi emerlin,

Yes, you can do everything you asked for in a LiveCycle Designer form.

This video here at AUC on scripting in LCD forms is a good place to start-
https://admin.adobe.acrobat.com/_a200985228/p87746471/

You may also want to read this article at JavaScript Corner on programming list fields and dropdown menus-
http://www.acrobatusers.com/tutorials/2007/js_list_combo_livecycle/
( there are exmaple files with scripts included. Download those so you can examine the code to see how it's done)

Hope this helps,

Dimitri
www.pdfscripting.com
www.windjack.com
emerlin
Registered: Jul 21 2008
Posts: 33
Thank you very much - great answers. Now if I can bend my head around them, I will be OK :-)

Cheers!