An embedded form appears directly inline on a page of your Shopify store, rather than as a popup overlay. Setting one up takes three steps: creating the embedded form, enabling the Spoks Onsite Javascript, and adding the Spoks Embedded Form block to your theme.
Requirements
Embedded forms are available for Shopify stores only.
The Spoks Embedded Form block needs an Online Store 2.0 theme. On older themes (sometimes called "vintage" themes) the block isn't available, but you can still add an embedded form with a short code snippet. See Using an older (vintage) theme below.
Step 1: Create the embedded form
Create a new form in Spoks and choose Embedded form as the type. Configure it like any other form — basic information, questions, appearance, and form settings.
Embedded forms also have two embed-specific settings: URL rules and form margin.
For details on configuring forms, see Creating or editing a form or poll.
Step 2: Enable the Spoks Onsite Javascript
Embedded forms only appear on your store when the Spoks Onsite Javascript is enabled in your Shopify theme. This is a one-time setup that applies to all popup and embedded forms.
When you save the embedded form, the How to use this form dialog appears with an Enable Javascript button that takes you to the Shopify theme editor and pre-enables the setup. Save your theme, and the JavaScript is active.
For full instructions, see Enabling Spoks Onsite Javascript on your store.
Step 3: Add the Spoks Embedded Form block to your theme
This is where you choose where the form appears on your store.
Copy the form's Form ID. You'll find a Copy form ID button in the How to use this form dialog (shown after saving, or reopened with the info icon on the form overview).
Open the Shopify theme editor. The How to use this form dialog's Edit theme button takes you there.
In the theme editor, add or open the section where you want the form to appear.
Add a new block and choose Spoks Embedded Form.
Paste your Form ID into the block's settings.
Save your theme.
The form will appear wherever you added the block. You can add the block in as many places as you like.
Using an older (vintage) theme
If your theme doesn't offer the Spoks Embedded Form block, you can place the form with a line of HTML instead. Steps 1 and 2 stay the same.
Copy the form's Form ID from the How to use this form dialog.
Paste this code where you want the form to appear, replacing
YOUR_FORM_IDwith your Form ID:
<div data-spoks-form-id="YOUR_FORM_ID"></div>
Where you can paste it:
In the theme editor: if your theme has a section or block for custom HTML, add the code there. On older themes this is usually only available on the homepage.
Anywhere else, such as the footer or product pages: go to Online Store → Themes → … → Edit code and add it to the right template or section file. If you're not comfortable editing theme code, ask your theme developer.
Things to know:
Use the ID of a LIVE embedded form from this store. Popup, shareable and draft forms won't appear.
Leave the code empty inside. You can add your own
classorstyleto it for spacing.
Making sure the form appears
For an embedded form to show on your store:
The Spoks Onsite Javascript must be enabled (Step 2).
The form's status must be LIVE. A DRAFT embed form doesn't render at all.