Highlighted

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

New Here ,
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

53

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

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

New Here ,
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

54

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
Oct 01, 2019 0
Adobe Community Professional ,
Oct 06, 2019

Copy link to clipboard

Copied

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
Reply
Loading...
Oct 06, 2019 0
ls_rbls LATEST
Adobe Community Professional ,
Sep 10, 2020

Copy link to clipboard

Copied

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.

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
Reply
Loading...
Sep 10, 2020 0