Showing and hiding pages
This example demonstrates the presence property. Objects can be set to ‘visible’ and ‘hidden’. The hidden value has an advantage over ‘invisible’, as it excludes the object from the form, thus allowing other objects to take its space. This requires the form to be saved as a Dynamic XML form.
Hey,
This is cool! Because of you, I’ve been able to incorporate this into my form. Thanks! Is there a way to print all the pages every time the form is printed?
Hi Mark,
I’m glad the solution has helped you.
If you have a look at this associated example, it might help: http://www.assuredynamics.com/index.php/portfolio/showing-and-hiding-pages-with-a-loop/.
If you are using a dropdown to allow the user select a page, then in its prePrint event use script to change the presence of each page to “visible”. Lastly, in the postPrint event you can fire the exit event:
this.execEvent(“exit”);
Niall
Interesting…It appears to be working when I use the File > Print function but not when I use a print button that I have created on the form. Hmmm
Hi Niall,
Great website; thanks for all the great tips!
I was very excited to use this but there seems to be an issue with the hidden pages “bleeding through” when scrolling? (Not sure on the terminology; still a newbie with all this.)
I opened the example file on my mac with Reader 11 and the showing and hiding of does work, but, if you scroll at all while the “sales” or the “accounts” page is visible, the hidden “administration page” “becomes visible (bleeds through) while in the process of scrolling.
When you lift your fingers off the track pad, the proper page becomes visible again.
Obviously this would be very confusing for the end user because if they’re scrolling down, they need to see what new information appears on the screen (for example, on the “sales” page) but they would be seeing the “administration” page again.
Any thoughts? This is such a great design tip I would hate to have to not use it.
Brian
Brian,
I have seen this happening in other LC Designer Forms where even just objects are hidden. I suspect that it is an impact of an Adobe update. I don’t think there is a way around this new phenomenon.
Niall
Niall,
Copy that. I certainly hope they address the issue with the next round of updates as it’s incredibly disruptive to the experience and handcuffs LC Designer’s utility.
Thanks for letting me know and, again, for all the great tips here.
Brian