hub.eb?material_id=194&track_id=350

Go to Page


The Verj.io JavaScript API's form interface includes a gotoPage(page) function that navigates to the specified Page in the current Form. The pages interface contains all Pages in the current Form.

To navigate to myPage in the current Form you could use the following code:

form.gotoPage(pages.myPage);

All Pages in a Form share the same User Session so navigating between Pages has no effect on Field or Table values.

Steps


1

Create a Form and add two Pages called first and second.

Add a Text Control to each Page and give them titles First and Second respectively.

2

Add a Field called myField and drag it onto each Page as a Field Control.

3

Add a Button Control to the first Page with the text: Go to Second Page.

Create a Script containing the following code and add it to the Button Control's On Click Event:

form.gotoPage(pages.second)
4

Run the Form and enter a value into myField.

Clicking the button will take you to the second page. Note that the Field value is the same.

Current Module

Related