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

Unhide Page Template, Then Go To the Page Using JavaScript

New Here ,
Apr 13, 2023 Apr 13, 2023

I have created/spawned multiple pages from a page template and made the page templates hidden.

 

I can unhide any specific page template through JavaScript, "this.getTemplate("Photo14" ).hidden=false;" but I also need the JavaScript code to go to the specific page, this.getTemplate("Photo14" ), or any other page template that is made visible.

 

Problem: when I unhide several pages templates, consecutive page numbers are automatically assigned so I cannot use a Bookmark, specific page, "this.pageNum = 19;", or Named Destination, "gotoNamedDest("Photo14");".  Also, when a page is hidden, the Named Destination page number disappears.

 

In Page Templates window, I can select any page template, make the template visible, and then click on the "Goto" button that takes me to the sepcific page template; is there JavaScript code that replicates this "Goto" button?

TOPICS
General troubleshooting , How to , PDF forms
375
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
no replies

Have something to add?

Join the conversation