I have this Script that I copied from this forum to Hide pages using a button...
I keep getting Page2 is undefined....
Page2.presence = (this.rawValue == "1") ? "visible" : "hidden";
How can I fix this and also how can I adapt this to work on a strig of pages... not necessarily in numerical order.
Thanks..
Tim
Page2 is the name of a subform that represents a page. For this to work on your form you would need a subform named "Page2" that is accessible from the element that executes this script. Hiding and showing pages like this also requires that the form is saved as "Dynamic"
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script