Thanks to "Merlin" and "George" for helping me with my previous problems with a merchandise ordering form. I'm trying a different approach to make the process even more functional. I'm using Acrobat 5 that I've updated recently to Ver 5.010.
Here's a link to another version of the ordering form.....
http://cid-574cab0dff9f00f2.skydrive.live.com/browse.aspx/Acrobat%205%20Questions?uc=1
In this one, I have opted to use a combo box to allow the buyer to make a choice between "s, m, l, xl, xxl and xxxl" items. They then move to the next field and enter a quantity. What I would like to have happen, if it's even possible in Acrobat 5 is to have the program automatically input the correct price for the selected combo item in the Price field.
When that's done, I know how to use the Calculation options to compute the Item Total for that particular line.
I'm assuming that some sort of Acrobat javascript is necessary to make this happen, but I don't have any experience writing that code.
Do any of you in this group know if this is possible and, if so, what would that coding be?
Thanks again for your help.
Tomt491
So if you assign an export value to each size, you only need to set the value of the price field to the value of the size field. The simplest computation would be done with the calculation option of "The is the Sum of:" and select the size field. And then for the "Item Total" field you only need to select the "Price" and "Quantity" fields for computing the quantity. Because you chose to have the currency sign appear, if you want the zero price and subtotals not to show you would need to add a validation script to hide the field when the value is zero with the following custom validation script for the price and subtotals for the item 1 fields:
this.getField(event.target.name).display = display.visible;
if(this.getField("size item1").value == 0) this.getField(event.target.name).display = display.hidden;
You would need to the "size item1" to "size item2" for the item 2 fields.
To find out more about JavaScirpt, you might want to look at Thom Parkers JavaScript Corner.
George Kaiser