Quantcast
Channel: Adobe Community: Message List - PDF Forms
Viewing all articles
Browse latest Browse all 57214

Re: Adding checkbox field with full color.

$
0
0

Hi Gilad

 

When i add more colors its not working, whats wrong with this

 

if (color.equal(event.target.fillColor, color.white))

 

    event.target.fillColor = color.lightblue;

 

else if (color.equal(event.target.fillColor, color.lightblue))

 

    event.target.fillColor = color.green;

 

else if (color.equal(event.target.fillColor, color.green))

 

    event.target.fillColor = color.yellow;

 

else if (color.equal(event.target.fillColor, color.yellow))

 

    event.target.fillColor = color.red;  

 

else if (color.equal(event.target.fillColor, color.red))

 

    event.target.fillColor = color.orange;

 

else if (color.equal(event.target.fillColor, color.orange))

 

    event.target.fillColor = color.brown;

 

else if (color.equal(event.target.fillColor, color.brown))

 

    event.target.fillColor = color.violet;

 

else if (color.equal(event.target.fillColor, color.violet))

 

    event.target.fillColor = color.white;


Viewing all articles
Browse latest Browse all 57214

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>