Solved

Form Validation, on blur javascript, required field.

Posted on 2003-11-04
1
906 Views
Last Modified: 2012-05-04
This probably doesn't go in the graphics section but it doesn't really fit in the javascript area either.

I have a pdf form, I want the field to be validated that is has something in it when they try to tab or click on the next field.  I have it checked off to be a required field but that only seems to work if I am having the form submited to a server.  I just want it filled out (correctly) and printed.

Anyone have any ideas?
thanks,
Kristie
0
Comment
Question by:kgregar
1 Comment
 
LVL 44

Accepted Solution

by:
Karl Heinz Kremer earned 250 total points
ID: 9804929
Use the following Javascript for the On Blur event:

var field = getField("ThisField").value;
if (field == "") app.alert("Please provide information for ThisField");

Replace the field name "ThisField" with your actual field name.

To create this Javascript as the On Blur handler select properties for your input field, then select the "Actions" tab.
Set "Select Trigger" to "On Blur" and click on the "Add" button. Type the two lines (with the correct field name) into the edit window.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Have you ever come up with a need of emailing only few pages of PDF file to one of yourfriend or colleague, instead of whole Adobe file? If yes, then surely you have face problems in doing that! Read this section as I have suggested multiple solutio…
*Adobe Acrobat 9 was used for this article. Particular steps may vary depending on software versions. 1. Create a framework of your form in Word, leaving space where you’d ultimately like the Adobe fields to appear.  (Note: I use the blank lines …
In this third video of the Xpdf series, we discuss and demonstrate the PDFtoText utility, which converts PDF files into plain text files. Download and install the software.: You may have already downloaded and installed the Xpdf tools while watching…
Sometimes we receive PDF files that are in the wrong orientation. They may be sideways or even upside down. This most commonly happens with scanned or faxed documents. It is possible to rotate the view of these PDFs with the free Adobe Reader produc…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now