For AI agents: a documentation index is available at the root level at /llms.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Logo

Get variable mode name

mode.getName()

Get the name of a variable mode

Syntax

1mode.getName(): Promise<string>

Returns

Promise<string>

A Promise that resolves to the name of the variable mode.

Example

1// Get Collection
2const collection = await webflow.getDefaultVariableCollection()
3
4// Get Variable Mode
5const variableMode = await collection?.getVariableModeById(modeId)
6
7// Get Variable Mode Name
8const name = await variableMode?.getName()
9console.log(name)

Designer Ability

Designer AbilityLocaleBranchWorkflowSitemode
canReadVariablesAnyAnyAnyAny
Morty Proxy This is a proxified and sanitized view of the page, visit original site.