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

Forms created in Acrobat 8 Require version 8 Reader to work?

mrorange
Registered: Jul 22 2008
Posts: 17

Hi. My form submit button will not work unless the recipient has Adobe version 8.x Shouldnt it also work with the newer version 9? Javascript for my submit button pasted below:

Thx for any replies.

sean

if (typeof(app.viewerType)!="undefined")
if(app.viewerType == "Reader")
{
var msg = "You must use Adobe Reader 8.0 to send this form. You can download Adobe Reader 8 at: http://www.adobe.com/products/acrobat/r … tml";
app.alert(msg);
}
else
{

var b = this.getField("Bride E-mail").value;

var g = this.getField("Groom E-mail").value;

var i = this.getField("Info").value;

if (b && g) {
this.mailForm(true, "mywedding [at] kameleonvibe [dot] com", b + "; " + g, "", i + "Kameleon Wedding Info Sheet");
} else if (b && !g) {
this.mailForm(true, "mywedding [at] kameleonvibe [dot] com", b, "", i + "Kameleon Wedding Info Sheet");
} else if (!b && g) {
this.mailForm(true, "mywedding [at] kameleonvibe [dot] com", g, "", i + "Kameleon Wedding Info Sheet");
} else if (!b && !g) {
this.mailForm(true, "mywedding [at] kameleonvibe [dot] com", "", "", i + "Kameleon Wedding Info Sheet");
} }

George_Johnson
Expert
Registered: Jul 6 2008
Posts: 1876
Are you saying that it doesn't work for someone using Acrobat 9? Have you confirmed that a default e-mail client is set-up on the user's machine? The mailForm method works for previous versions as well.

George
mrorange
Registered: Jul 22 2008
Posts: 17
Yes. It does not work with Reader 9 on either pc we tested it on. Both have default mail programs. Strangely enough, it does work with FoxIt.
George_Johnson
Expert
Registered: Jul 6 2008
Posts: 1876
Some things you can do is to check whether JavaScript is enabled and enable the JavaScript console to check for any errors.

George
mrorange
Registered: Jul 22 2008
Posts: 17
It ran the App alert warning saying I didnt have version 8, so Java is enabled. Would it help if i sent you a copy of the form? Thank you. I really appreciate your help.

sean
George_Johnson
Expert
Registered: Jul 6 2008
Posts: 1876
Sure, I'd be happy to take a look.

George
George_Johnson
Expert
Registered: Jul 6 2008
Posts: 1876
It turns out the problem is you want mailForm to work with Reader, which it cannot, unless the form has been Reader-enabled by Adobe's LiveCycle Reader Extensions product, which will cost you. Note that enabling rights in Acrobat does not grant the relevant rights.

But note that the mailDoc method will work with PDFs that have been given Save rights via Acrobat. In this case, the entire filled-in PDF gets attached to an e-mail, as opposed to just the FDF that contains only the form data. This may be a better option for you anyway. If you go this route, I'd suggest the JavaScript in posting I'll make after this. A significant limitation to this approach are the restrictions placed on you by the Acrobat licensing agreement. Make sure you review and understand it.

If you want to e-mail an FDF without worrying about usage rights and licensing restrictions, you have to use a different approach, such as submitting the data to a web server, which can then do the job of attaching the FDF to an e-mail. This might sound more complicated than it is, so if you'd like more details, post again.

George
George_Johnson
Expert
Registered: Jul 6 2008
Posts: 1876
Here is some code you can try if you decide to use the mailDoc method:

// Main recipient
sTo = "mywedding [at] kameleonvibe [dot] com"// Initialize list of CC recipients
var sCC = "";

// Get recipient e-mail addresses from form fields
var sBride_EM = this.getField("Bride E-mail").value;
var sGroom_EM = this.getField("Groom E-mail").value;

// Build CC recipient string
if (sBride_EM) sCC += sBride_EM + "; ";
if (sGroom_EM) sCC += sGroom_EM;

// Create subject line
sSubject = getField("Info").value + " - Kameleon Wedding Info Sheet"

// Attempt to send e-mail, and alert user if failed
try {
// Mail the form data
mailDoc(true, sTo, sCC, "", sSubject, "See attached PDF form for details.");
}
catch (e) {
app.alert("The form could not be sent.\r\r" + e);
}


George
mrorange
Registered: Jul 22 2008
Posts: 17
George_Johnson wrote:
If you want to e-mail an FDF without worrying about usage rights and licensing restrictions, you have to use a different approach, such as submitting the data to a web server, which can then do the job of attaching the FDF to an e-mail. This might sound more complicated than it is, so if you'd like more details, post again.George
I would love to do that. That sounds like a much better idea. I actually have a website in the works and domain kameleonvibe.com. The domain came with 10G of server space. I would love some details!

sean