Skip to main content
Participating Frequently
May 21, 2020
Answered

Make a PDF form open in a specific view

  • May 21, 2020
  • 1 reply
  • 793 views

I have created an Adobe Acrobat PDF form which has lots of fields to complete. When I open it on my laptop, it all looks great but when someone else opens it, they see a border hover color for fillable fields which makes all the boxes look blue.

I know you can change this in Edit > Preferences > Forms > Highlight Color, but is there a way (perhaps with Javascript?) to get the PDF to open in this view so that no matter what the individual’s PDFs settings are, it will display correctly without the colour?

I am a complete Javascript novice so if this is needed, providing the code would be so gratefully appreciated.

This topic has been closed for replies.
Correct answer BarlaeDC

Hi,

If you create document Javascript to run this code it should switch it off ( note: it does change the users preferences)

if (app.runtimeHighlight) {
app.runtimeHighlight = false;
}

Regards

Malcolm

1 reply

BarlaeDC
Community Expert
BarlaeDCCommunity ExpertCorrect answer
Community Expert
May 21, 2020

Hi,

If you create document Javascript to run this code it should switch it off ( note: it does change the users preferences)

if (app.runtimeHighlight) {
app.runtimeHighlight = false;
}

Regards

Malcolm

biba.doaAuthor
Participating Frequently
May 21, 2020

Thanks for getting back so quickly. Sorry for probably a really simple question but where would I need to enter that code?

biba.doaAuthor
Participating Frequently
May 23, 2020

Worked out where to put it and it works! Amazing! For anyone else that stumbles upon this, put it in Tools > JavaScript > Document JavaScripts