Skip to main content
Participant
April 13, 2023
Answered

Hiding and showing templates not working in Adobe Reader?

  • April 13, 2023
  • 2 replies
  • 2977 views

Hello,

I'm currently creating a PDF form that is initially 1 page and depending on what checkbox the user selects, it unhide/hide certain templates related to the checkboxes that are selected.

I'm working with adobe pro dc and everything works well on my end and i'm having no problem. When testing my PDF any users that were using adobe reader couldn't get the templates to ''unhide/spawn'' on pages after page 1 like it works when I test it with Adobe Pro DC.

 

If it helps I'm using this form of code to enable that function with adobe pro dc:

 

if (this.getField("Checkbox1").value == "Yes") {
this.getTemplate("template1").hidden = false;
this.getTemplate("template2").hidden = false;
}

 

Is there a reason i'm missing to why the function of hiding/unhiding doesn't work in adobe reader?

This topic has been closed for replies.
Correct answer JR Boulay

Acrobat Reader cannot show/hide a template, this requires Acrobat Pro or Acrobat Standard.

For Reader you must "spawn" the hidden template page to show it, and you must delete the spawned page to hide it.

2 replies

JR Boulay
Community Expert
JR BoulayCommunity ExpertCorrect answer
Community Expert
April 14, 2023

Acrobat Reader cannot show/hide a template, this requires Acrobat Pro or Acrobat Standard.

For Reader you must "spawn" the hidden template page to show it, and you must delete the spawned page to hide it.

Acrobate du PDF, InDesigner et Photoshopographe
Participant
April 14, 2023

Thank you for helping out!

I can certainly set up a spawning/deleting feature to get my templates to show in acrobat reader. The only problem I'm experiencing with that workaround is that I have two templates that spawns on two different pages and one is suppose to show/hide fields on the other one, but when these templates are getting spawned they don't communicate actions through different pages. Have any fabulous workaround for this too?

Legend
April 13, 2023

Certainly some template methods need Acrobat. The Acrobat JavaScript documentation tells you, for each method, whether it works in Reader. Look at the quick bar. Also check the JS console in Reader. Bear in mind Reader exists only to sell Acrobat.