Skip to main content

Function: getSectionData()

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

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

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.

Throws​

NavigationError if the section is not found.

Example​

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