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

Submit button issues

auntypizza
Registered: Nov 13 2007
Posts: 7

I have created a fillable form with a submit button to send the PDF via email as attachment with recipient email address information. It works fine at my end, but when friend clicks on submit button, a popup window says "Please indicate the option that best describes how you send email". I dont get this window when I click - and we don't want ANY popup windows. Here is link online to this form: username is ambrosia, password is wholesale.

My Product Information:
Acrobat Pro 8.0999999999999996447286321199499070644378662109375, Windows
pddesigner
Registered: Jul 9 2006
Posts: 858
Have you enabled Reader Usage Rights in the form?

File attachment rights for the end user is a security-restricted method that requires advanced scripting described in the Acrobat SDK.

Try this alternative:

This example takes the response given in a text field and appends it to an attached document (text file attached to the PDF doc). (Perhaps this document is circulating by email, and the user can add in their comments through a multiline text field.)

There are four methods used in this JavaScript.

var v = this.getField("myTextField").value;
// Get the contents of the file attachment with the name "MyNotes.txt"

var oFile = this.getDataObjectContents("MyNotes.txt");
// Convert the returned stream to a string

var cFile = util.stringFromStream(oFile, "utf-8");
// Append new data at the end of the string

cFile += "\r\n" + v;
// Convert back to a stream

oFile = util.streamFromString( cFile, "utf-8");
// Overwrite the old attachment

this.setDataObjectContents("MyNotes.txt", oFile);
// Read the contents of the file attachment to a multiline text field

var oFile = this.getDataObjectContents("MyNotes.txt");
var cFile = util.stringFromStream(oFile, "utf-8");
this.getField("myTextField").value = cFile;

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

auntypizza
Registered: Nov 13 2007
Posts: 7
Yes, I have enabled Reader Usage Rights in the form.

I don't know what you are saying in the alternative section: can you please explain a bit more non-technically.

Thanks Eugene.
auntypizza
Registered: Nov 13 2007
Posts: 7
How does one put javascript into an Adobe file. I have no idea . . . why am I not getting ANY popup windows, but my friend is?

I would like there to be no popups (for people filling in the PDF form who wouldn't understand what the dialogue boxes are saying)
pddesigner
Registered: Jul 9 2006
Posts: 858
In your initial question you wrote "Here is link online to this form: username is ambrosia, password is wholesale", you did not provide the URL.

Send it to me (pdfdesign [at] msn [dot] com) or post it here so we can take a look.

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

auntypizza
Registered: Nov 13 2007
Posts: 7
Gene,

I have emailed you twice - haven't heard from you. Please help, thanks.

Keely