Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Program Buttons to Advance to a New Page

Avatar

Level 2

Hi,

I have a 15 page document with buttons on each of the pages. I want to be able to click the button and move to the next page. I don't want to go to a previous page, I simply want to advance. Is there a way to program this? If so, what do I do to accomplish this?

4 Replies

Avatar

Level 7

there may be a better way of doing this but you could always use xfa.host.setFocus("") - and just put the first thing on the next page in the brackets.

Avatar

Level 2

I don't follow. How would I accomplish what you are suggesting?

Avatar

Level 7

Well setFocus will move the screen to whatever you put into the brackets, so if you want to go to page 2 and at the top of page 2 you have a text field called TextField1 you would put in the click event of your page 1 button:

xfa.host.setFocus("page2.TextField1")

Avatar

Level 10

You can use xfa.host.pageDown(); on the Click event of a button.