PDF-Forms is a service provided by PDFzone.com | http://www.pdfzone.com/
__________________________________________________________________

DJ,

Rich's solution sounds great.  Here's something I wrote before I saw Rich's
email:

If the form is submitted to a web server, I think one can simply designate
each required field as "Required" under Field Properties (Go to the Common
Properties section at the bottom of the Appearance tab.)

I place a "Print" button at the bottom of each form.  If I wanted two
fields, for example, to be filled in before I allowed the user to print the
form, I would use the following logic (The "setFocus" command places the
cursor on the required field that was detected as blank; this command was
new with version 4 of Acrobat.):

var f1 = this.getField("SSNUM");
var f2 = this.getField("TIMEPM");
if (f1.value == "")
        {app.alert("Social Security Number is a required field!")
        if (typeof app.formsVersion != "undefined" && app.formsVersion >=
4.0) 
                // Version specific operation:
                f1.setFocus();}
else
        {
        if (f2.value == "")
                {app.alert("Time is a required field!")
                if (typeof app.formsVersion != "undefined" &&
app.formsVersion >= 4.0) 
                        // Version specific operation:
                        f2.setFocus();}
        else
                app.execMenuItem("Print");
        }

-----Original Message-----
From: Rich Ruiz [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 02, 2003 10:58 AM
To: [EMAIL PROTECTED]
Subject: RE: [PDF-Forms] Force fill-in or entry


PDF-Forms is a service provided by PDFzone.com | http://www.pdfzone.com/
__________________________________________________________________

Faced with a similar proble in developing our FormStream product, we
developed some custom javascript that does the following when the form is
submitted.

1. Iterates through all the fields on the form.
2. For required fields, checks to see if it has a value.
3. If it does not have a value, adds it to an string array of "missing
values".

Finally..

4. If the array is not empty, build an alert box that presents a list of all
missing data.
5. Sets focus on one of the "miissing" fields.
6. If the array is empty, the form is submmited.

Rich Ruiz
C3BGroup Inc.
wwww.c3bgroup.com

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of DJ
Sent: Monday, June 02, 2003 7:26 AM
To: [EMAIL PROTECTED]
Subject: [PDF-Forms] Force fill-in or entry



PDF-Forms is a service provided by PDFzone.com | http://www.pdfzone.com/
__________________________________________________________________

Hello Everyone -

Here's my situation:

We currently use a pdf (job specification) form for our sales
reps to fill/print out and provide to our customer service reps
to enter orders into the system. Along the way this form has
been less than useful because the sales reps are not answering
some questions and leaving critical fields unanswered.

Is there a way to not allow tabbing to the next question/field
without providing a answer selection or keyed entry? Or at the
very least, when you click a print or submit button that a
message comes up that the form is incomplete or more information
is needed?

Thanks in advance for any ideas, comments or solutions.

Thanks,

DJ Johnson




To change your subscription:
http://www.pdfzone.com/discussions/lists-pdfforms.html



To change your subscription:
http://www.pdfzone.com/discussions/lists-pdfforms.html

To change your subscription:
http://www.pdfzone.com/discussions/lists-pdfforms.html

Reply via email to