Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Setting a default field highlight in acrobat 9 pro

Setting a default field highlight in acrobat 9 pro

Setting a default field highlight in acrobat 9 pro

I have been using Acrobat Pro for several years now, but I am new to javascript. I have been beating my brains out trying to figure this one out. I am creating a form to be filled out. some questions are mandatory, some are optional. I am color coding these as needed with the fill highlight. As the user enters data in a field, the fill highlight goes away.

I want to set a document level javascript that I can select the fill highlight as a default color, say light blue. I cannot seem to get it right.

I can do this with a field level javascript. You set the appearance color you want for the field, then to to the actions tab and set an onblur changing the color to transparent. However, when you reset the form, the highlight does not return. Is this the only way I can get this done?

RE: Setting a default field highlight in acrobat 9 pro

I think I figured out the answer for myself. I do not think you can do this with a document level script.

It can be done on a field level script in the "Format" tab, custom format

the following script works well, (but highlight color is light green)

var f = event.target;
if (f.value != "")
{f.fillColor = color.transparent;
f.textColor = color.black
event.target.display = display.visible;}
{f.fillColor = ["RGB", .56, .99, .64];
f.textColor = color.black;
event.target.display = display.noPrint;}

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close