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

Forms

Odessa1990
Registered: Jan 11 2007
Posts: 4

I am trying to create an order form that only has 2 items in a drop-down. I would like to have the cost field automatically fill in with the correct price (depending on which item is selected) How do I do this? I am using Adobe LiveCycle

My Product Information:
Acrobat Pro 8, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Please take a look at this article

[url=http://www.acrobatusers.com/tech_corners/javascript_corner/tips/2006/change_another_field/]http://www.acrobatusers.com/tech_corners/javascript_corner/tips/2006/change_another_field/[/url]

Thom Parker
WindJack Solutions
[url=http://www.windjack.com]www.windjack.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/]http://www.adobe.com/devnet/acrobat/[/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

pdftrainer
Expert
Registered: Dec 14 2005
Posts: 180
Thom's article is great for Acrobat, but I would suggest another approach for LiveCycle.

In LiveCycle Designer, I would use a change event on your pull-down menu.

Enter a JavaScript like this:
yourpricefieldname.rawValue = xfa.event.newText;

Carl Young
[url=http://www.pdfconference.com]www.pdfconference.com[/url]

A certified expert on Adobe Acrobat, Carl Young is an Adobe Acrobat and LiveCycle Designer trainer and consultant based in Phoenix. He is the producer of the [link=http://www.pdfconference.com/]PDF Conference[/link].