Hiding Specific Page in adobe Acrobat pro DC
Hiding specific pages based on a checkbox is unchecked and when checked it will show the page. Here's the script that I'm using but it is not working please help:
// Replacing "Checkbox1" with the actual name of your checkbox field
var checkbox = this.getField("Checkbox1");
// Replacing "PageNumberToHide" with the page number you want to hide
var pageToHide = this.getPageNthNum("PageNumberToHide"); if (checkbox.value == "Off") { this.hidePages([pageToHide]); } else { this.showPages([pageToHide]); }
