The form embed enables you to integrate a feedback form seamlessly into your app or website. Feedback from customers and stakeholders lands in the inbox.md for easy triage.
Installation instructions
Section titled “Installation instructions”Copy the Form ID
Section titled “Copy the Form ID”Copy the form ID for the embed form.
Select how to display your form
Section titled “Select how to display your form”
The form can be shown inline, alongside the content where you embed it, or opened programatically.
Add the embed script
Section titled “Add the embed script”Add the following code snippet to the
<head>section of your site.<script src="https://embed.released.so/1/embed.js" defer></script>Add the released-form element to your page
Section titled “Add the released-form element to your page”Add the following code snippet to the
<body>section of your site. Unlike the widget, the page content renders where you position the element. Ensure you replace theFORM_IDattribute.<released-form form-id="FORM_ID"></released-form>To automatically authenticate users, you can implement user verification and pass in the
auth-tokenattribute.<released-form form-id="FORM_ID" auth-token="AUTH_TOKEN"></released-form>
Open/Closing the dialog
Section titled “Open/Closing the dialog”You can open the form programmatically using the Hub API:
// Open the feedback formwindow.Released.show('form', 'your-form-id');
// Close the feedback formwindow.Released.close('form', 'your-form-id');Example with a button:
const openFeedback = () => { window.Released?.show('form', 'your-form-id');};
<button onClick={openFeedback}> Feedback</button>Preloading the form
Section titled “Preloading the form”If you add <released-form> after your page has loaded, for example once you have a user verification token, add a data-preload attribute to the embed script. The form’s code then downloads while you wait for the token, instead of after it.
<script src="https://embed.released.so/1/embed.js" defer data-preload="form"></script>If you only know later whether you’ll show the form, preload it from your own code instead. This works once the embed script has run:
window.Released?.preload('form');preload returns a promise that resolves when the code has downloaded. It never rejects, and it doesn’t open or render the form.
Customize the page
Section titled “Customize the page”Customize the page to match your brand and app design using the page properties. Adjust the title and description, or change the colors according to your preferences.
Please see the documentation for a full list of configuration options.
Example
Section titled “Example”View an example of how to embed the page on CodePen.