Skip to main content
Version: 1.x

Function: getSectionData()

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

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.

Capability​

fe.objectPage.getSectionData

Throws​

NavigationError if the section is not found.

Example​

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