For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Resources
Get started
ReferenceGuidesExamplesChangelog
ReferenceGuidesExamplesChangelog
  • Designer API
    • Introduction
    • Getting Started
    • Webflow CLI
    • Error Handling
    • App Modes
  • Elements
    • Creating & Retrieving Elements
    • Element Properties & Methods
    • Element Types & Methods
  • Styles
    • Managing Style Properties
    • Managing Variable Modes
  • Components
  • Variables & Collections
    • Variable Collections
        • Get collection name
        • Set variable collection name
        • Move collection after target
        • Move collection before target
    • Variables
    • Variable Modes
  • Assets
  • Pages & Folders
  • Utilities
    • User Events & Notifications
    • App Intents & Connections
  • Additional Resources
    • API Playground
    • FAQs
LogoLogo
Resources
Get started
On this page
  • collection.setName(name)
Variables & CollectionsVariable CollectionsManaging Variable Collections

Set a variable collection name

Was this page helpful?
Previous

Move collection after target (Beta)

Next
Built with

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

Try this example

Designer Ability

Designer AbilityLocaleBranchWorkflowSitemode
canModifyVariablesAnyMainCanvasDesign