Overview

The Javascript integration allows you to embed your form in Javascript-powered web apps or web builders like Webflow.

Prerequisites#

Using this library requires an active Feathery account, form, and API key.

Quickstart#

You can install the JS library from our CDN. Place the following code where you want your form to display. Make sure to replace APIKey and formKey with your relevant info.

<script src="https://cdn.jsdelivr.net/npm/feathery-react/umd/index.min.js" />
<div id='container'></div>
<script>
(() => {
Feathery.init('<APIKey>');
Feathery.renderAt('container', { formKey: '<formKey>' });
})();
</script>

The Feathery object is attached at the global scope.

API Guide#

Feathery.init#

Same as the React API

Feathery.renderAt#

Embed your Feathery form into an HTML element with the specified elementID.

ParameterTypeDescription
elementIdstringID of the element to embed form into.
propsobjectSame as the React form props