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
    • Variables
    • Variable Modes
  • Assets
  • Pages & Folders
  • Utilities
    • User Events & Notifications
      • Send notification to user
      • User selects element
      • User changes breakpoint
      • User changes current page
      • User changes CMS Page
      • User changes Designer mode
      • User changes Designer pseudo-state
      • User changes variant
    • App Intents & Connections
  • Additional Resources
    • API Playground
    • FAQs
LogoLogo
Resources
Get started
On this page
  • notify(opts)
  • Syntax
  • Parameters
  • Returns
  • Example
UtilitiesUser Events & Notifications

Send notification to user

Was this page helpful?
Previous

User selects element

Next
Built with

notify(opts)

Send an in-Designer notification to the user. The notification can be styled as either a success, error, or general information message. Error messages provide users with the opportunity to close the Designer Extension.

Your browser doesn’t support HTML video.

Syntax

1webflow.notify(
2 opts: {
3 type: 'Error' | 'Info' | 'Success',
4 message: string,
5 }
6): Promise<void>

Parameters

opts : {message: string, type: 'Error' | 'Info' | 'Success'

The options for the notification.

  • message: string
  • type: “Error” | “Info” | “Success”

Returns

Promise<Void>

A Promise that returns a value of undefined.

Example

1webflow.notify({ type: 'Info', message: 'Great work!' }); // General notification
2webflow.notify({ type: 'Error', message: 'Something went wrong, try again!' }); // Error notification
3webflow.notify({ type: 'Success', message: 'Successfully did something!' }); // Success notification

Try this example