⚪onRequestInit
The onRequestInit
callback is triggered after the action options have been converted into fetch options but before the request has been made.
Use cases
Manipulate the headers
Manipulate the body
Perform validation on the data
Arguments
Example
This example demonstrates how to include a value from the Webflow CMS in a request.
The below example assumes the CMS value is bound to a text element within the trigger elements parent element.
Last updated