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

Hightlight Existing Fields

phorsley
Registered: Nov 2 2007
Posts: 35

Hi,
 
Is there anyway to disable the highlight the existing fields box that appears when the user opens up the PDF.
 
The client doesn't want the blue field boxes showing when the end user opens the form, I know they only have to click on the "Highlight Existing Fields" box to hide
them, but they don't want this option at all.
 
thanks in advance
 
Paul Horsley

My Product Information:
Acrobat Pro 10.1, Macintosh
gkaiseril
Online
Expert
Registered: Feb 23 2006
Posts: 4307
This is a user settable application preference and is best set as the user wants it.

It is possible to use a document level Java Script to change this property and the highlighting color. But using this method could change the user's preference setting.



George Kaiser

phorsley
Registered: Nov 2 2007
Posts: 35
The client doesn't want these fields to show at all so I think I may have to find a script to do this.

thanks

Paul
gkaiseril
Online
Expert
Registered: Feb 23 2006
Posts: 4307
From the Acrobat JSI API Reference:

if (!app.runtimeHighlight){
app.runtimeHighlight = true;
app.runtimeHighlightColor = color.red;
}

So you need to change the test from NOT ("!") change the highlight action to 'false', and and leave the color alone.

But this might not turn if off for the next form he uses. So if he wants it "Off" for all forms, then he needs to modify his application settings.



George Kaiser

phorsley
Registered: Nov 2 2007
Posts: 35
Thanks very much, I will try this

Paul
phorsley
Registered: Nov 2 2007
Posts: 35
Do i put this in Document Javascripts, also I dont undrstand your comment,
So you need to change the test from NOT ("!")

thanks

Paul
gkaiseril
Online
Expert
Registered: Feb 23 2006
Posts: 4307
"!" is the logical NOT operator.

// test for run time highlight being on or true
if (app.runtimeHighlight){
app.runtimeHighlight = false; // turn off highlighting
}


George Kaiser

phorsley
Registered: Nov 2 2007
Posts: 35
Hi,

Still don't know where this script is placed.

thanks

Paul
maxwyss
Registered: Jul 25 2006
Posts: 255
You put that piece of code in a Document Level script.

Hope this can help.

Max Wyss.