pageContent

Retrieves types of form design objects from a specified page of a form.

Syntax

Reference_Syntax.pageContent( INTEGER param1 [, STRING param2 [, BOOLEAN param3 ] ] )

Parameters

param1

An integer representing the desired page number. This value is 0-based.

param2 (Optional)

Return the following types of containers:

  • field

  • Returns all of the following form design objects: Button, Check Box, Date/Time Field, Drop-down List, Signature Field, Image Field, List Box, Numeric Field, Password Field, Radio Button, and Text Field.

  • draw

  • Returns all of the following form design objects: Circle, Line, Rectangle, Static Image, and Static Text.

  • subform

  • Returns all subform form design objects.

  • area

  • Returns all area form design objects.

  • pageArea

  • Returns all pageArea form design objects.

  • contentArea

  • Returns all contentArea form design objects.

  • empty (default)

  • Returns all containers.

param3 (Optional)

  • true | 1 (JavaScript) or 1 (FormCalc) (default)

  • Returns only pageArea content nodes.

  • false | 0 (JavaScript) or 0 (FormCalc)

  • Returns all non-pageArea content nodes.

Returns

A collection of form design objects from the specified page number.

Applies to

Version

XFA 2.1

Examples

JavaScript

// Get the fields in a document 
var oFields = xfa.layout.pageContent(i, "field");

FormCalc

// Get the fields in a document 
var oFields = xfa.layout.pageContent(i, "field")

// Ethnio survey code removed