Skip to main content
Participating Frequently
January 4, 2022
Question

Conditional greyout fields

  • January 4, 2022
  • 1 reply
  • 390 views

How can I grey out some fields depending on the answer to a previous quesitons. Not hide/show but greyout and not fillable anymore, like the picture from the form a the link below.

 

It's created by Livecycle Designer as reply in another thread mentioned. I'm wondering if it is feasbile in Acrobat Pro.

 

Thanks

 

https://www.canada.ca/content/dam/ircc/migration/ircc/english/pdf/kits/forms/imm0008enu_2d.pdf 

This topic has been closed for replies.

1 reply

Nesa Nurani
Community Expert
Community Expert
January 4, 2022

As custom calculation script of that text field use something like this:

if(this.getField("No").value != "Off"){
event.target.fillColor = ["G",0.9];
event.target.readonly = true;
event.value = "";}
else{
event.target.fillColor = color.transparent;
event.target.readonly = false;}

 

Change "No" to your 'No' checkbox actual name.

Change '0.9' to '0.8' or less if you wish darker grey.