Going Further
Last updated
Last updated
1. Open the Form trigger and click on the copy icon on the right of the Form Embed Code field.
2. From your Shopify Admin, click on Settings and then locate the Checkout settings.
3. Scroll down until you locate the Order status page additional scripts section. Paste the copied Form embed code.
4. Save your changes.
After saving, your form will appear on the order status page after customers place an order.
You can preview the look of the form by going to any order in your store. Click the More Actions dropdown and then select the View order status page from the drop-down menu.
Your theme must be an Online Store 2.0 theme in order to add a MESA Form through the Shopify theme editor.
1. Open the Form trigger and copy the entire URL to the right of the Form URL field.
2. From your Shopify Admin, click on Online Store under Sales Channels. Locate your preferred theme and click on Customize.
3. In the theme editor, select a page to which you'd like to add the Form using the dropdown menu at the top.
4. Once a page is selected, click Add section in the left sidebar menu. Then, scroll down to the App blocks and select the MESA Form block.
5. Locate the Form URL field and paste the copied Form embed code. You will be able to see the Form in the theme editor as a preview after pasting the URL.
7. Save your changes.
After saving, you can exit the theme editor and view the form on your selected page.
1. Open the Form trigger and click on the copy icon to the right of the Form Embed Code field.
2. From your Shopify Admin, click on Online Store under Sales Channels. Locate your preferred theme and click on Actions and then Edit code.
3. Locate your theme's customer order file. Each theme varies, but a common location is under the Templates folder: customers/order.liquid file.
4. Paste your copied Form Embed Code anywhere you’d like it to appear on the page.
5. Save your changes. After saving, you can exit out of the theme editor and view the customer account page.
Your form is also available on your Shopify site out of the box. To view your hosted form, click on the export icon under the Form URL.
If your workflow is disabled, you will not be able to see your form.
If the customer is logged in, the payload submitted by the form will also include customer_id
.
When setting up a form, MESA gives you the option to add class names to the form fields.
This HTML snippet adds a border around the form and ensures that the input fields and buttons have a border outline.
Scripts do not apply the same styling universally and may require adjustments based on the location of the Form.
If you would like to build something more interactive, Form has a powerful JavaScript API:
GET {{form_url}}.json
: (optional) retrieve your Form Builder configuration in a format that can be rendered with the Form Renderer JavaScript library.
POST {{form_url}}.json
: Post a JSON object representing your form. Example:\
Here is an example of a form that is built with the Form Renderer library and submitted via jQuery. To use it, simply change {{form_url}}
in the <form>
tag to be your MESA Form URL.