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

form submission

dsmunsey
Registered: Dec 2 2007
Posts: 2

I would like to submit a section (or page ) of a form instead of the whole form to various email addresses

My Product Information:
Acrobat Pro 8, Windows
pddesigner
Registered: Jul 9 2006
Posts: 858
This solution is for a product catalog but can be modified for your purposes.

(1.) Separate your order form from the catalog and save it as orderForm.pdf.
Click Document, Extract Page ..

2.) Place this Javascript on the last page of your main form as a Page Open script.

if (app.viewerVersion < 7)
app.alert("Version 7.0 required. Some features will not work.");

else {
this.slave = app.openDoc("orderForm.pdf",this);
this.bringToFront();
}

Create a button on the last page of the main form and add this button action.

for (var i = 0; i < 7;i++) {
var quantity = this.getField("qty."+i);
var result = this.slave.getField("orderQty."+i);
result.value = quantity.value;
}
slave.bringToFront();

This routine loops through the qty. fields. Note: the variable quantity is assigned the value of the qty. fields on the main page. The varible results is assigned to the orderQty. field on the orderForm.pdf. The result.value is equal to the quantity.value, which takes the value of the qty. filed and places the value in the corresponding orderQty. field. After the loop finishes, the slave (orderForm.pdf) is moved to the front of the Document pane so the user can complete the order form and submit the data or print the form. Note: the number 7 represents the number of catalog items in the main page. Your orderForm.pdf must have text fields named orderQty.0, orderQty.1, orderQty.2, orderQty.3, orderQty.4, orderQty.5, orderQty.6, orderQty.7.

You should have seven fields named Qty.0, Qty.1, Qty.2, Qty.3, Qty.4, Qty.5, Qty.6, Qty.7 on the catalog main page.

Now you need to setup the email addresses for the submit button. The easiest way is to send the orderForm.pdf as a Document Review.

My favorite quote - "Success is the ability to go from one failure to another with no loss of enthusiasm.

lnail
Registered: Apr 18 2008
Posts: 51
I, too, am interested in this. Only, the pages that I will be submitting from my doc are spread out throughout an over 80-page form. Is there a script that I can place in my Submit button that will "pull-out" only the pages that I need?

L Nail

YES! I can do that.