Expand my Community achievements bar.

SOLVED

activate the "Highlight Fields" button by javascript

Avatar

Former Community Member

Hello,

there is the button "Highlight Fields" which is rendered by default by Acrobat Reader below the toolbars and before the pdf content.

When the button is pressed, then each form field gets background color and the selected field has different background color.

Is it possible to activate this field by javascript ?

Thanks.

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

Yes using the following javascript in the docReady event of the root node:

app.runtime Highlight = true; 

Using false will turn the highligh colour off.

Good luck,

Niall

View solution in original post

3 Replies

Avatar

Correct answer by
Level 10

Hi,

Yes using the following javascript in the docReady event of the root node:

app.runtime Highlight = true; 

Using false will turn the highligh colour off.

Good luck,

Niall

Avatar

Former Community Member

Omg, hundreds of clicks and copy-pastes has just lost its sense ....

Thank You very much for quick response.

Avatar

Level 10

Yes, sorry an extra space...

app.runtimeHighlight = true;

app.runtimeHighlight = false;

Good luck,

Niall