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

How to disable red frame when submit form?

zxuan
Registered: Feb 1 2008
Posts: 14
Answered

I have created a from with Acrobat professional.Now here is a problem:

When I click submit botton to submit a form, the border of all input fields which with "required" properties become red color even only one field is not filled.

The question is: how to let only the empty field which with "required" properties become red border when I submit the form?

Urgent, waiting online.........

My Product Information:
Acrobat Pro 8.1.2, Macintosh
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
What you are seeing is the default "Required Field" coloring provided by Acrobat. If you want it to be different then you have to disable the form field coloring and create your own.

This can all be done with JavaScript. To turn off the form field coloring use the "app.runtimeHighlight" property. Look it up in the Acrobat JavaScript Reference.

Here is an article on colors in Acrobat. It has some example and a sample file:

http://www.acrobatusers.com/tech_corners/javascript_corner/tips/2006/using_colors/

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script