Orvelt

Squarespace

Put Orvelt's opinion form on a Squarespace page with a Code Block.

Squarespace's Code Block accepts HTML, so you can paste your block straight into any page.

Before you start:

  • Have your Project ID ready and choose feedback button or form on the page. How to get these
  • Squarespace only runs scripts in Code Blocks on some plans. If the form doesn't appear on your live site, check your plan in Squarespace's billing settings.

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 the page in Squarespace and select Edit.

Select an Add Block point (or +) where the form should go, and choose Code.

In the Code Block, check the language is HTML and turn Display Source off.

Delete the sample text, paste your block, and close the block editor.

Select Save.

Squarespace shows 'Script disabled' while editing

That's normal. Squarespace doesn't run scripts in the editor. Check the form on your live site.

3. Test it

Open the live page in a new tab and submit a test opinion. Test the form

If you set allowed origins, add your Squarespace address, like https://www.your-site.com, and your built-in squarespace.com address if customers use it. Allowed origins