Skip to main content
Version: 1.x

Function: getSectionData()

getSectionData(page, sectionIdentifier): Promise<Readonly<Record<string, unknown>>>

Defined in: src/fe/object-page.ts:180

Reads form field data from a section of the Object Page.

Parameters

page

ObjectPagePage

Page to evaluate on.

sectionIdentifier

string

Section title or ID.

Returns

Promise<Readonly<Record<string, unknown>>>

Key-value pairs from form controls in the section.

Intent

Extract all form field key-value pairs from an Object Page section.

Throws

NavigationError if the section is not found.

Example

const data = await getSectionData(page, 'General Information');