These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Required field validation

skemp50
Registered: Jun 20 2007
Posts: 10

Can anyone tell me, very specifically, how to get a required field to display a message if the field is left blank or the entry doesn't match the validation pattern when then user tabs out of the field, not just when the form is submitted. Also, I want the focus to stay on that field until the entry is correct. And I want this to happen on the Client side. I have tried about a dozen variations of JavaScript code, and nothing works.

I would greatly appreciate any help.

Sid Kemp

My Product Information:
LiveCycle Designer, Windows
pddesigner
Registered: Jul 9 2006
Posts: 858
Take a look at this Adobe article and review the example in LiveCycle. You could modify the code to do what you have in mind.

http://www.box.net/shared/static/1dz7n53wgw.pdf

My favorite quote - "Success is the ability to go from one failure to another with no loss of enthusiasm.