Webflow
Put Orvelt's opinion form on a Webflow page with a Code Embed element.
Webflow's Code Embed element accepts HTML and scripts, so your block goes straight in.
Before you start:
- Have your Project ID ready and choose feedback button or form on the page. How to get these
- Webflow runs custom code only on published sites with a paid site plan. It doesn't run in the Designer.
1. Copy your block
Replace PASTE-YOUR-PROJECT-ID-HERE with your Project ID.
<button id="orvelt-feedback-button" type="button">Give feedback</button>
<script src="https://unpkg.com/@orvelt/business/dist/opinion-embed.js"></script>
<script>
(function () {
var form = OrveltEmbed.configure({
projectId: 'PASTE-YOUR-PROJECT-ID-HERE',
visibility: 'public',
});
document.getElementById('orvelt-feedback-button').addEventListener('click', function () {
form.open();
});
})();
</script>2. Paste it into your page
Open your site in the Webflow Designer and go to the page where the form should appear.
Open the Add panel (+) and drag a Code Embed element onto the page where you want the form.
Paste your block into the code editor that opens, then select Save & Close.
Select Publish and publish to your domain.
3. Test it
Open the published page and submit a test opinion. Test the form
If you set allowed origins, add your custom domain and, if customers use it, your webflow.io address. Allowed origins