Skip to main content
diegoc31283334
Known Participant
August 8, 2018
Answered

How to Show/hide pages based on drop-down selection?

  • August 8, 2018
  • 1 reply
  • 2523 views

I have a drop down or combobox and I need to hide/show pages depending on the selection.

Is there any chance I can do that?

This topic has been closed for replies.
Correct answer Thom Parker

In the "Organize Pages" tools panel there is a "More" dropdown menu with a Page Template option.

1 reply

Thom Parker
Community Expert
Community Expert
August 9, 2018

There is a way to do this but its complex.  The idea is to turn all the pages that need to be shown or hidden into page templates. Start out with all templates hidden. When selected, spawn the necessary pages. If a different selection is made the code has to find the existing pages, delete them, then spawn new ones.

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
diegoc31283334
Known Participant
August 9, 2018

How do I create page templates?

Thom Parker
Community Expert
Thom ParkerCommunity ExpertCorrect answer
Community Expert
August 9, 2018

In the "Organize Pages" tools panel there is a "More" dropdown menu with a Page Template option.

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