• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
1

In Acrobat DC pro forms, how to turn off highlighting once fields are filled

New Here ,
Apr 13, 2024 Apr 13, 2024

Copy link to clipboard

Copied

In Acrobat DC pro forms, how to turn off highlighting for those fields which are filled by users. Suppose there are 10 fillable text fields in a form, by default all fields show the blue highlight. As the user fill data in the first field and tab to second field, the blue highlight turns off for the first field and so on. At the end only those fields show highlight which are empty. 

In short, how to set the blue highlight option only for empty fillable fields. 

Help from the community is requested, please 

TOPICS
JavaScript , PDF forms

Views

190

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Apr 14, 2024 Apr 14, 2024

This applies to all fields, though. They seem to want to do it to one field at a time, as they are filled in, and that can only be achieved if a script is used to create the highlighting by setting a fill color depending on the field's value.

Votes

Translate

Translate
Community Expert ,
Apr 14, 2024 Apr 14, 2024

Copy link to clipboard

Copied

This is not a property you can individually target when the blue is the PDF default action. You might consider adding a custom color to the form field and then controlling that through javascript.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 14, 2024 Apr 14, 2024

Copy link to clipboard

Copied

Actually, you can turn off field highlighting from a non-privileged (document) script. 

 

app.runtimeHighlight = false;

 

Keep in mind that this is an application level property that is setup from from the Acrobat Preferences.  So when this is changed, it is changed for all PDFs the user will open. 

 

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 14, 2024 Apr 14, 2024

Copy link to clipboard

Copied

LATEST

This applies to all fields, though. They seem to want to do it to one field at a time, as they are filled in, and that can only be achieved if a script is used to create the highlighting by setting a fill color depending on the field's value.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines