page.setName(name)

Set the name of the page.

Syntax

1page.setName(name: string): Promise<null>

Parameters

  • name: string - The new name of the page.

Returns

Promise<null>

A promise that resolves to null.

Example

1// Get Current Page
2const currentPage = await webflow.getCurrentPage() as Page
3
4// Set page name
5await currentPage.setName("My New Page")
6console.log(pageName)

Designer Ability

Designer AbilityLocaleBranchWorkflowSitemode
canManagePageSettingsAnyAnyAnyAny
Built with