Planet PDF Forum Archive

Planet PDF ForumWowsers! This is page is old, head to the LIVE Planet PDF Forum. It features more than 10 conferences, covering everything from beginner to in-depth developer and pre-press discussions. If you wish to continue... one & two archive covers 1999-2011 (160,000 pages).


New Forum | Previous | Next | (P-PDF) Beginners


Topic: Required Fields - please help
Conf: (P-PDF) Beginners, Msg: 107194
From: ljoyce
Date: 3/6/2004 09:31 AM

I am creating a form that needs to be completely filled out and then emailed to me. I understand that checking "required" under text properties won't work. I have tried to use a java script and it's just not working. Can anyone tell me what is wrong with the script?

var fieldarray=new Array();
fieldarray[0]=getField("Text2");
fieldarray[1]=getField("Text3");
fieldarray[2]=getField("Text4");
fieldarray[3]=getField("Text5");
fieldarray[4]=getField("Text6");
fieldarray[5]=getField("Text7");
fieldarray[6]=getField("Text8");
fieldarray[7]=getField("Text9");
fieldarray[8]=getField("Text10");
fieldarray[9]=getField("Text11");
fieldarray[10]=getField("Text12");
fieldarray[11]=getField("Text13");
fieldarray[12]=getField("Text14");
fieldarray[13]=getField("Text15");
fieldarray[14]=getField("Text16");
fieldarray[15]=getField("Text17");
fieldarray[16]=getField("Text18");
fieldarray[17]=getField("Text19");
var donotsubmit=false;
for (var i=0; i if (fieldarray[i].value==fieldarray[i].defaultValue)
donotsubmit=true;
};

if (donotsubmit) app."Please make sure all fields are completed.");
else this.mailDoc({
bUI: false,
cTo: "ljoyce@mii.net",
cSubject: "Employee PAF"
});

I have put this code in a button to send the email. Do I have to do something to the individual text fields? The text fields are named "Text2" and so on. I am a beginner, any help would be greatly appreciated!



PDF In-Depth Free Product Trials Ubiquitous PDF

Debenu Aerialist

The ultimate plug-in for Adobe Acrobat. Advanced splitting, merging, stamping, bookmarking, and link...

Download free demo

Debenu PDF Tools Pro

It's simple to use and will let you preview and edit PDF files, it's a Windows application that makes...

Download free demo

Back to the past, 15 years ago! Open Publish 2002

Looking back to 2002, it's amazing how much of the prediction became a reality. Take a read and see what you think!

September 14, 2017
Platinum Sponsor





Search Planet PDF
more searching options...
Planet PDF Newsletter
Most Popular Articles
Featured Product

Debenu PDF Aerialist

The ultimate plug-in for Adobe Acrobat. Advanced splitting, merging, stamping, bookmarking, and link control. Take Acrobat to the next level.

Features

Adding a PDF Stamp Comment

OK, so you want to stamp your document. Maybe you need to give reviewers some advice about the document's status or sensitivity. This tip from author Ted Padova demonstrates how to add stamps with the Stamp Tool along with related comments.