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

Using a subform or app.response to collect information

adjmcloon
Registered: Jan 8 2010
Posts: 13

I have an order form where I am attempting to calculate shipping costs. The shipping data currently lives in a spreadsheet, however eventually I want to use the UPS Worldship API to generate labels and costs.

For now, I am simply trying to have a small subform pop up when the user clicks on the shipping cost field. I want to collect the weight and value amount for the order from them (so 2 variables). Then I want the script to grab the ship to zip code field, query the external source using my weight and value declarations, and then populate the shipping field with that information.

Would it be better to use a subform since I need more than one variable from the user, or should I use app.response and just have it ask each question in order?

Also any other input is greatly appreciated!

My Product Information:
Acrobat Pro 9.2, Windows
try67
Expert
Registered: Oct 30 2008
Posts: 2398
You can use a Dialog. It allows you to ask the user for different kinds of input in a single window.
However, creating a dialog can be a bit tricky, but there are examples in the reference files.
The most simple solution is to use app.response().

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com