Solved

Form Validation, on blur javascript, required field.

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Adobe Reader: Skip the "save as" step 5 49
Scroll through PDF files 2 339
Font: I need Lato on my Mac 10 249
PDF File Shrinker 10 131
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…
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:/…
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…
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…

813 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

13 Experts available now in Live!

Get 1:1 Help Now