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
      • Attributes
        • Get Attributes
        • Get Resolved Attributes
        • Set Attributes
        • Set Attribute
        • Get Attribute Value
        • Get Resolved Attribute Value
        • Remove Attribute
      • 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.getResolvedAttributeValue(name)
  • Syntax
  • Parameters
  • Returns
  • Example
  • Designer Ability
ElementsElement Properties & MethodsAttributes

Get resolved attribute value (Beta)

Was this page helpful?
Previous

Remove attribute (Beta)

Next
Built with

element.getResolvedAttributeValue(name)

Get the resolved value of a single attribute on an element.

This method returns the final output value for the named attribute. If the attribute value is bound to a variable or component prop, the binding is resolved to its current string value rather than returned as a binding reference.

To get the raw value including any binding reference, use element.getAttributeValue().

Beta

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

Syntax

1element.getResolvedAttributeValue(name: string): Promise<string | null>

Parameters

  • name : string — The name of the attribute whose resolved value to retrieve.

Returns

Promise<string | null>

A Promise that resolves to the attribute’s current string value, or null if no attribute with the given name exists.

Example

1const element = await webflow.getSelectedElement()
2
3if (element && element.attributes) {
4 const value = await element.getResolvedAttributeValue('data-title')
5 console.log(value) // 'My heading'
6}

Try this example

Designer Ability

Checks for authorization only.

Designer AbilityLocaleBranchWorkflowSitemode
canAccessCanvasAnyAnyAnyAny