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

Check and uncheck the checkbox with hide/show action

New Here ,
Oct 02, 2024 Oct 02, 2024

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?

TOPICS
PDF , PDF forms
513
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 ,
Oct 02, 2024 Oct 02, 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 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
Community Expert ,
Oct 02, 2024 Oct 02, 2024
LATEST

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;

}

 

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