Expand my Community achievements bar.

Can I have the checkbox caption highlighted in a color when the box is checked?

Avatar

Level 1

I'm trying to make a PDF fillable form for some of my sales folks, and I would love to highlight the color of the caption text associated with a checkbox when said checkbox is selected.

Is this possible?

Thank you all!

7 Replies

Avatar

Level 4

Use the below script

  if(this.rawValue == 1)

   this.fontColor = "255";

else

  this.fontColor = "0";

endif

Hope it helps

Vipin

Avatar

Level 1

Hi Vipin!  Thanks for the script!

The only problem is...  when I add it to the checkbox, only the check MARK itself changes color, not the text associated with the checkbox as a caption.

Can you advise?  Thank you, my friend!

Avatar

Level 1

I also tried this:

this.caption.font.fill.color.value = "255,0,0";

Still, not working.  Weird, huh?

I found this unanswered comment here, which seems to be addressing the same issue, but we're using exactly the same script!  I wonder why it's not working?

http://forums.adobe.com/thread/601932


Avatar

Level 4

It is working at my end, I have uploaded the PDF file, check the below URL

https://workspaces.acrobat.com/?d=4x-kqQXOfx376GZhBhjsGA

Avatar

Level 1

Ugh.  Very odd.  I tried your script, but I still cannot get it to work.

I'm using LiveCycle Designer ES Version 8.2.1.4029.1.523496

I had it on MouseUp, but I changed it to Click -- still nothing.  Just the checkmark.  :-(

Avatar

Level 4

The PDF that i have uploaded still not working?

I have created this PDF in designer 10.

Avatar

Level 1

:-(

Still not working.  I hate to give up, I just don't have much more time to work it through.  I tried everything I could think of, with no result.  I copied your checkbox, I copied the script, I tried several permutations on the script, nothing.

What could be the issue?