Form navigation can be triggered through a variety of methods within a tablet pc based form. The method you choose will depend on the complexity of the form and the navigation itself. If your form will use simple, linear navigation (page 1 to page 2 to page 3, etc.) then Page hotspots are the easiest method. Simply place a Page style hotspot on your form and select the desired page. Alternatively, you could put a Script style hotspot on your form and use the following line of code to specify the page:


_component.GoToPage(_component.ActiveForm, i)


Replace the “i” with the desired page. Put this line of code in the AfterInkAdded event of the Script hotspot.

If your page navigation is more complex or you want it triggered from something other than a hotspot, you have several options. You can use the line of code from above and trigger it from any event you choose. For example, if you want the user to be taken to a particular page based on entered data, you can trigger the page turn in the AfterSetData event on that field.

You can make page navigation dynamic by using variables in place of the hard-coded page number. Based on conditions you set, the user can be navigated to any page in the form.

See the example form in the Attachments section of this page for more form navigation examples.