Skip to main content
Participant
April 13, 2023
Question

Unhide Page Template, Then Go To the Page Using JavaScript

  • April 13, 2023
  • 0 replies
  • 459 views

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?

This topic has been closed for replies.