collection.setName(name)

Sets the name of a variable collection.

Syntax

1collection.setName(name: string)

Parameters

  • name: string - The new name for the variable collection.

Returns

null

Returns null if the name was set successfully.

Example

1const collection = webflow.getVariableCollectionById("collection-4a393cee-14d6-d927-f2af-44169031a25b");
2
3collection.setName("My New Collection");
4
5// returns null

Designer Ability

Designer AbilityLocaleBranchWorkflowSitemode
canModifyVariablesAnyMainCanvasDesign
Built with