Expand my Community achievements bar.

AEM Forms Designer go to specific page in a dynamic form

Avatar

Level 1

Hello,

I've created an interactive form in adobe AEM form designer. The form is dynamic,the page numbers and specific location of subforms will change as the content changes. 

I am trying to add a static button at the top of the form to help the user navigate to most common headers. The form is sometimes 16 pages long and users get frustrated by the constant scrolling.

Designer has a custom page navigation object which is a good start. I have that in the right spot, I'm just looking for the right script to tell it to navigate to whatever page contains the section header. The buttons are on the Master Page, but I'm wanting it to navigate to the subform on the Main Page. 

 

Here is what I have which is not working right now:

xfa.host.currentPage = form1.Main1.SFInterimCorrectionActions.TXTInterimActionsCorrections.thisPage.rawValue - 1 ;

 

The default they provide for the Page Navigation to go to a specific page works correctly, but my issue is that the page I want will not always be a static value, I need the form to identify the page and then go there. What the provide is below:

xfa.host.currentPage = xfa.host.numPages - 1

 

What I need is on click, for the form to identify what page that TXT value is on and then go there. Maybe I am just missing the identify portion?

I appreciate any insight people have

1 Reply

Avatar

Level 1

Re-reading some things I have found that in the below, the value 'thisPage' was an object someone else had in their form and is not a script to identify the current page. Is there a different script to replace it with that will provide a command to identify the current page?

xfa.host.currentPage = form1.Main1.SFInterimCorrectionActions.TXTInterimActionsCorrections.thisPage.rawValue - 1 ;