FormForm.getName()

Retrieves the name of the form.

Syntax

1form.getName(): Promise<string>

Returns

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

Example

1const selectedElement = await webflow.getSelectedElement()
2
3if (selectedElement?.type === 'FormForm' || selectedElement?.type === 'FormWrapper'){
4
5 const name = await selectedElement.getName()
6 console.log(name)
7
8} else {
9 console.log("Selected Element is not a Form Element")
10}

Designer Ability

Designer AbilityLocaleBranchWorkflowSitemode
canAccessCanvasAnyAnyAnyAny
Built with