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

Conditional Formatting after clicking checkbox

New Here ,
May 20, 2020 May 20, 2020

Hello,

I have created a PDF with checkboxes next to different steps that clients must follow. Is there a way to make it so when they click the checkbox the font becomes gray? I am just hoping to make it clear to them which steps they have done and which they must move on to. For example, when the click the checkbox in the photo, could I make it so the font turns gray?

 

Screen Shot 2020-05-20 at 11.21.41 AM.pngexpand image

TOPICS
How to , PDF forms
549
Translate
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 ,
May 20, 2020 May 20, 2020
LATEST

Yes, but to do this you'll need to replace the text on the page with a read only form field or text annotation. Then you can text color to gray. 

Use a mouseup script in the checkbox 

 

this.getField("LabelText2").textColor = (event.target.value=="Off")?color.black:["G",0.5];

 

where the text associated with this checkbox is in a field named "LabelText2".

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Translate
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