formcycle 8.3.6 - JavaScript for forms
    Preparing search index...

    Function gotoPage

    • A formcycle form may consist of multiple pages. This function lets you change to another page. You may also specify whether navigation should be prevented in case the current page is invalid (e.g. due to required fields that are still blank).

      // Go to page 2, but only if all form fields on the current page are valid
      gotoPage("p2", true);

      // Go to page 2 and do not check any form fields
      gotoPage("p2");

      Parameters

      • pageName: string

        The name of the page to goto. This is the name given to the page in the designer.

      • Optionalvalidate: boolean

        Set to true to prevent the page change in case the current page is invalid. Set to false to perform the navigation irrespective of whether the current page is valid.

      Returns void