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

Changing default highlight color for required field and background

Explorer ,
Feb 27, 2024 Feb 27, 2024

So i fiddled with this settings:

Captura.PNG only to find out that this affects only my computer. When sending it to anyone else, they go back to the default light blue and red for required.

The colors I chose are the following:

- For the field highligh color: Red: 220; Green: 220; Blue:220

- For the required outline border color: Red: 0; Green: 90; Blue: 245

 

I chatGPT-ed how I would go about this based on this another solution: Solucionado: Fields highlight color - Adobe Community - 10821733 and came out with these two scripts:

This would go in document level script

// Saves user preferences for regular highlight color
var hiliUserPrefs = app.runtimeHighlight;
var colorUserPrefs = app.runtimeHighlightColor;

// Changes regular highlight color
app.runtimeHighlight = true;
app.runtimeHighlightColor = ["RGB", 0.86, 0.86, 0.86]; // Gris claro (Rojo: 220, Verde: 220, Azul: 220)

// Saves user preferences for required border color
var reqHiliUserPrefs = app.runtimeHighlightRequired;
var reqColorUserPrefs = app.runtimeHighlightRequiredColor;

// Changes border color
app.runtimeHighlightRequired = true;
app.runtimeHighlightRequiredColor = ["RGB", 0, 0.35, 0.96]; // Azul claro (Rojo: 0, Verde: 90, Azul: 245)

 Then for the action when you close document:

// reset highlight
app.runtimeHighlight = hiliUserPrefs;
app.runtimeHighlightColor = colorUserPrefs;

// reset border
app.runtimeHighlightRequired = reqHiliUserPrefs;
app.runtimeHighlightRequiredColor = reqColorUserPrefs;

 This worked 50% 😄 The regular highlight gray color is saved in my colleagues computer. But the required fields are still showing up as red. Do you know how would the correct code be?

Ty in advance =D

TOPICS
PDF , PDF forms
879
Translate
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
1 ACCEPTED SOLUTION
Community Expert ,
Feb 28, 2024 Feb 28, 2024
LATEST

No. The only way to achieve it is to disable the fields highlighting entirely and paint the fields yourself with the desired fill and border colors.

View solution in original post

Translate
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 ,
Feb 27, 2024 Feb 27, 2024

The required color can't be changed by a script. "app.runtimeHighlightRequiredColor" and "app.runtimeHighlightRequired" are totally made up. No such properties exist.

Translate
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
Explorer ,
Feb 27, 2024 Feb 27, 2024

Hey ty for your reply @try67.

Oh 😞 Damm. And there is no other way to change it?

Translate
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 ,
Feb 28, 2024 Feb 28, 2024
LATEST

No. The only way to achieve it is to disable the fields highlighting entirely and paint the fields yourself with the desired fill and border colors.

Translate
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