Solved

Form Validation, on blur javascript, required field.

Posted on 2003-11-04
1
923 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Want Experts Exchange at your fingertips?

With Experts Exchange’s latest app release, you can now experience our most recent features, updates, and the same community interface while on-the-go. Download our latest app release at the Android or Apple stores today!

Question has a verified solution.

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

PaperPort is a popular document imaging/management product from Nuance Communications (http://www.nuance.com/). It is in widespread use by both individuals (http://www.nuance.com/for-individuals/by-product/paperport/index.htm) and businesses (http:/…
Inserting page numbers in Portable Document Files not only enhances manageability but also makes them look professional. With numbered pages, the file appears more organized and it becomes easier to search for a particular page. The size and the vol…
In this video, we show how to perform Bates Numbering/Stamping of PDF documents using Power PDF Advanced, the newest product from the Document Imaging division of Nuance Communications. There are two editions of Power PDF — Standard and Advanced. Th…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

623 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