Conditional Formatting after clicking checkbox
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
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".
Use the Acrobat JavaScript Reference early and often

