Designer API
Control the Webflow Designer
page.setName(name)
Set the name of the page.
1page.setName(name: string): Promise<null>
string
Promise<null>
null
A promise that resolves to null.
1// Get Current Page2const currentPage = await webflow.getCurrentPage() as Page34// Set page name5await currentPage.setName("My New Page")6console.log(pageName)
Try this example