Skip to main content
Participating Frequently
February 27, 2024
Answered

Changing default highlight color for required field and background

  • February 27, 2024
  • 1 reply
  • 1014 views

So i fiddled with this settings:

 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

This topic has been closed for replies.
Correct answer try67

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.

1 reply

try67
Adobe Expert
February 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.

Participating Frequently
February 28, 2024

Hey ty for your reply @try67.

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

try67
try67Correct answer
Adobe Expert
February 28, 2024

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.