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
        • Search element settings
        • Get settings
        • Get resolved settings
        • Set settings
        • Get visibility
        • Set visibility
        • Get DOM ID
        • Set DOM ID
        • Search bindable sources
      • Attributes
      • Custom Attributes
      • Styles
      • Text Content
      • Display Name
    • Element Types & Methods
  • Styles
    • Managing Style Properties
    • Managing Variable Modes
  • Components
  • Variables & Collections
    • Variable Collections
    • 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
  • element.getSettings()
  • Syntax
  • Returns
  • Example
  • Designer Ability
ElementsElement Properties & MethodsSettings

Get settings (Beta)

Was this page helpful?
Previous

Get resolved settings (Beta)

Next
Built with

element.getSettings()

Get the raw values for all settings on an element.

This method returns the current value for each setting as it is stored. Statically set values are returned as-is. Values that are bound to a data source are returned as binding reference objects with a sourceType field.

To get the resolved values instead of the binding references, use element.getResolvedSettings().

Beta

These methods are in public beta and may change with future releases.

Syntax

1element.getSettings(): Promise<ElementSettingSummaries>

Related types:

1/**
2 * Each key is a setting key (e.g., 'domId', 'tag', 'visibility').
3 * Static values are bare (string, number, boolean, etc.).
4 * Bound values include binding metadata (sourceType + source fields).
5 * Settings with no value and no default are null.
6 */
7type ElementSettingSummaries = Record<string, ResolvedValue | BindingValue | null>;

Returns

Promise<ElementSettingSummaries>

A Promise that resolves to an object mapping setting keys to their raw values. Static values are returned as-is, and bound settings are returned as binding reference objects.

For elements that support custom attributes, the returned object includes an attributes key containing an array of AttributeEntry objects. Each entry’s name and value can be a string or a BindingValue if the attribute is bound.

Example

1const element = await webflow.getSelectedElement()
2
3if (element) {
4 const settings = await element.getSettings()
5 console.log(settings)
6
7 /*
8 {
9 tag: 'h2',
10 domId: { sourceType: 'prop', propId: 'prop_3' },
11 altText: 'A sunset photo',
12 attributes: [
13 { name: 'data-label', value: 'primary' },
14 { name: 'data-index', value: '1' },
15 ],
16 }
17 */
18}

Designer Ability

Checks for authorization only.

Designer AbilityLocaleBranchWorkflowSitemode
canAccessCanvasAnyAnyAnyAny