Introduction to forms

The MarketHype forms library is a JavaScript library for embedding the form you create in MarketHype on your site.

For information on how to create your MarketHype forms, please refer to the help centeropen in new window.

Embedding a form

From the MarketHype application you can retrieve the script tag needed to embed your form.

<script async
  src="https://forms.markethype.io/client/script.v2.js"
  onload="mhForm.create({formId:'[YOUR-FORM-ID]',target:this})"
></script>

The default script tag will embed the entire form and necessary elements inline within your DOM, right after where you place your script tag.

If you need more fine grained control over how and where your form is rendered, please refer to the advanced setup options.

Last Updated: