Solved

Form Validation, on blur javascript, required field.

Posted on 2003-11-04
1
917 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
The Adobe PDF proprietary file format is recognized as secure and formulated. But these PDF files are also prone to corruption and any external threat like virus attacks, improper storage can hit PDF file integrity.This type of damages can make cruc…
In this first video of the three-part Xpdf series, we introduce and describe Xpdf, a library containing nine command line utilities that perform various functions on PDF files. We show where the library is located and how to download it, discuss its…
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…

830 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