Skip to content

@serenity-is/corelib / getForm

Function: getForm()

getForm(key): PropertyItem[]

Defined in: src/compat/scriptdata-compat.ts:136

Synchronously retrieves form metadata for a key. Compat shim for getForm; delegates to getFormData(key).items.

Parameters

key

string

Form key (usually a form type name).

Returns

PropertyItem[]

The array of PropertyItem form field definitions, or an empty array if not found. [DEPRECATED] Prefer getFormAsync / getFormScript for async loading.