hub.eb?material_id=371&track_id=368

JavaScript API: Pages


The pages interface acts as a parent for all pages within a form. Individual pages are accessed using their page name, e.g. pages.myHomePage.

If the page name begins with a numeral (e.g. 1myPage) then the page can only be using the pages.getPage(String) method.

All pages can be iterated using the following code:

for (var page in Iterator(pages.iterator())){
  // Do something with the Page
  // such as log its name
  log(page.elementName); 
}

Controls on a page can be accessed using pages.myHomePage.getAllControls(). Controls with a particular modifier can be accessed using pages.myHomePage.getControlsByModifier(modifier).

Current Module

Related