🦴x-fetch

Overview

The x-fetch attribute allows users to trigger an action when the page is loaded, a button is clicked, or a form is submitted.

Example

Webflow does not natively support <button> elements

<a x-fetch="my_action" href="#" class="w-button">Trigger</a>

Supported Elements

Tag
Description

<body>

When the page is loaded

<button> or <a>

When the element is clicked

<form>

When the form is submitted

Last updated