Skip to main content
Participant
October 2, 2024
Question

Check and uncheck the checkbox with hide/show action

  • October 2, 2024
  • 2 replies
  • 617 views

I have a form in Adobe Acrobat with three check boxes. I have set up that once one is checked, than other two are hidden. Which is what I want. 

 

But in case when I uncheck the checked box (in case i checked the wrong check box and want to correct error), other two checkbox remain hidden and do not reapear. 

 

How to set up that in case I uncheck box, other two apear again?

This topic has been closed for replies.

2 replies

PDF Automation Station
Community Expert
Community Expert
October 2, 2024

Mouse Up action script:

if(event.target.value!="Off")

{

this.getField("Check Box2").display=display.hidden;

this.getField("Check Box3").display=display.hidden;

}

else

{

this.getField("Check Box2").display=display.visible;

this.getField("Check Box3").display=display.visible;

}

 

Thom Parker
Community Expert
Community Expert
October 2, 2024

A script is required to create this behavior.  You'll find everything you need in this article, including a sample file. 
https://www.pdfscripting.com/public/Hiding-and-Showing-Form-Fields.cfm

 

 

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