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

Need to have a button in Acrobat cycle through 3 or 4 colors

New Here ,
Oct 01, 2019 Oct 01, 2019

Copy link to clipboard

Copied

Good morning all. I am stumped on how to use Javascript in Acrobat Pro DC. I have seen an example on how to click through two colors on a button on mouseUp. 

 

event.target.fillColor = (color.equal(color.blue, event.target.fillColor)) ? color.green : color.blue;

 

I need to add two more colors to this, example red and yellow. It's for a map to show our transit station level of cleanliness (red = bad, green = good, yellow = currently cleaning, blue = job scheduled) something like that. 

if anyone can help - I will be in your debt!!

 

thanks 

 

Chicago Transit Authority

Views

207

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 ,
Oct 06, 2019 Oct 06, 2019

Copy link to clipboard

Copied

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 ,
Sep 10, 2020 Sep 10, 2020

Copy link to clipboard

Copied

LATEST

Hi,

 

Just a quick follow up and checking if the link that I provided for you had the answer that you were looking for.

 

If it did, would you mind updating this thread.

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