Get Form Name

FormForm.getName()

Retrieves the name of the form.

Syntax

form.getName(): Promise<string>

Returns

Promise<name>: String - The name of the form.

Example

const selectedElement = await webflow.getSelectedElement()
if (selectedElement?.type === 'FormForm' || selectedElement?.type === 'FormWrapper'){
const name = await selectedElement.getName()
console.log(name)
} else {
console.log("Selected Element is not a Form Element")
}

Designer Ability

Designer AbilityLocaleBranchWorkflowSitemode
canAccessCanvasAnyAnyAnyAny