These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Link to another page in a form

markbrow
Registered: Dec 2 2009
Posts: 4
Answered

Can I create a link to another page on my form ?
Any ideas how to best do this

Cheers
Mark

My Product Information:
LiveCycle Designer, Windows
pddesigner
Registered: Jul 9 2006
Posts: 858
Acrobat Solution

Navigating Views
On a button action do the following:
1. Create a Button field.
2. Click the Actions tab.
3. Choose Run a JavaScript from the Select Action drop down menu.

Type one of the following scripts in the JavaScript Editor.
To go to the next page: this.pageNum++;
To go to the previous page: this.pageNum--;
To go to a specific page: this.pageNum = 0;
Click OK in the JavaScript Editor.
Click Close in the Button Properties dialog box.

Keep in mind that JavaScript is zero based. Therefore if you want to write a script that opens page 7 in a document, your script needs to be written as:
this.pageNum = 6;

LiveCycle Solution
Moves to the previous page of a form. Use the pageUp method at run time.
Examples
JavaScript
xfa.host.pageUp();

Use the Custom Page Navigation in the Object Library.

My favorite quote - "Success is the ability to go from one failure to another with no loss of enthusiasm.

pforms
Registered: Nov 17 2009
Posts: 87
Another technique is to create a button and use: xfa.host.setFocus() to link to a field on another page.
jonom
Registered: Jan 31 2008
Posts: 133
You can also use xfa.host.currentPage to go to a specific page. [b]xfa.host.currentPage ="1";[/b] will go to page 2 (pages start at zero).

If your form is dynamic and pages are moving around you can put a field on the pages to collect the page number with [b]this.rawValue = xfa.layout.page(this);[/b]