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!
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