Creating or configuring forms > Configuring the <pages> element

6.2 Configuring the <pages> element

The <pages> element allows you to define the layout of the user interface. The layout can be either static or dynamic.

To configure the pages element

  1. Open the configurable XML file corresponding to the form you want to edit. These are usually located in the Viewpoint home directory. Find the <pages> element.
  2. To create a page, add a child <page> element within <pages> and give it a unique id.
  3. <pages>
      ...
        <page id="page01">
          ...
        </page>
      ...
    </pages>
  4. Verify that at least one configured page has the first attribute set to "true".
  5. <page id="page01" first="true">
  6. Locate the <sections> element, which contains a list of sections to display on the page, and configure it according to your needs (for more information, see Configuring the <sections> element).
  7. Configure the <navigation> element within a page to specify either a dynamic page layout or a static page layout.
  8. If you are using multiple pages in a dynamic layout, specify which page(s) to load next by adding more <page> elements.
  9. Configure the <description> element within a page to describe it (for more information, see Configuring the <description> element).
  10. Configure the <validation> element within the <page>. This will determine if the values on the page are valid before submission.
  11. Set permissions for pages for which you wish to restrict visibility. To do so, add the permission attribute to the <page> element and set the value to what permission is needed. If the user does not have the specified permission, the page is not displayed.
  12. <pages ui-type="dynamic">
      <page id="page01" first="true"></page>
      <page id="page02"></page>
      <page id="page03" permission="advancevpc"></page>
    </pages>

    "page03" is viewable only by users with the "advancedvpc" permission.

This section contains these topics: