Text Field .fillColor disappearing

Community Beginner ,
Feb 10, 2021 Feb 10, 2021

Copy link to clipboard

Copied

For some reason the following code only seems to highlight the active form field. In other words, as soon the cursor moves to another form field the background color reverts to the default color. However, if i move the cursor back to the field with the conditional formatting color pops back up??? 

 

if (event.value=="UL") event.target.fillColor = color.red;

else if (event.value=="ML") event.target.fillColor = color.green;

else if (event.value=="IL") event.target.fillColor = color.blue;

 

Attack_On_Titan_13_0-1613030274416.png

Attack_On_Titan_13_1-1613030316264.png

 

 

Views

137

Likes

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

Adobe Community Professional , Feb 11, 2021 Feb 11, 2021
You need to turn off field highlight. Go to preferences (CTRL+K) -> forms and turn off 'Show border hover color for fields'

Likes

Translate

Translate
Guest
Feb 11, 2021 Feb 11, 2021

Copy link to clipboard

Copied

Hi

Can you tell us which Adobe application you're using so we can move the thread to the correct forum

Likes

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 Beginner ,
Feb 11, 2021 Feb 11, 2021

Copy link to clipboard

Copied

My apologies, this is literally the first time I've posted in a forum. I'm using Adobe Acrobat Pro DC Version 20.013.20074.

Likes

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
Guest
Feb 11, 2021 Feb 11, 2021

Copy link to clipboard

Copied

No worries, I'll move the thread to the correct forum

Likes

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
Adobe Community Professional ,
Feb 11, 2021 Feb 11, 2021

Copy link to clipboard

Copied

You need to turn off field highlight. Go to preferences (CTRL+K) -> forms and turn off 'Show border hover color for fields'

 

Likes

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 Beginner ,
Feb 11, 2021 Feb 11, 2021

Copy link to clipboard

Copied

Works like a charm! Thank you for helping a newbie out. 

Likes

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 Beginner ,
Feb 11, 2021 Feb 11, 2021

Copy link to clipboard

Copied

Follow-on question. Why is the conditional formatting not removed when the javascript is deleted in the Custom calculation script?

Likes

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
Adobe Community Professional ,
Feb 11, 2021 Feb 11, 2021

Copy link to clipboard

Copied

The two things are not related. The fields highlighting setting is an app-wide, user setting. It is possible to override it with a script, but it won't do so automatically.

Likes

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 Beginner ,
Feb 11, 2021 Feb 11, 2021

Copy link to clipboard

Copied

Thank you for the help. Do I need to start a new thread to address the issue of how to override the conditioal formating code, or can I tag that on here?

Likes

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 Beginner ,
Feb 11, 2021 Feb 11, 2021

Copy link to clipboard

Copied

LATEST

Figured it out! Thank you both for all the help. 

Likes

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