To get started, paste this snippet into the
head tag of your website:
<script async src="https://sdk.arengu.com/forms.js"></script>
Specify where you want to embed our form using any of the following techniques.
Method 1: Using a HTML tag (Recommended)
Place the following HTML tag where you want your form to appear:
You have to replace
YOUR_FORM_ID with your Form ID, which you can find in your form settings or share page.
You can place multiple HTML tags on the same page, our SDK will detect all tags with
data-arengu-form-id attribute and embed the forms inside them.
Method 2: Calling our
Our SDK has an embed method that allows to embed your form inside any element.
embed method definition:
embed call has the following fields:
|formId (required)||String||The Form ID of your form. You can find it in your form settings or share page.|
|selector (required)||String|Element||Query selector or DOM element that the form will be appended to.|
Example using the query selector:
That snippet will embed the form with ID
5073697614331904 into the element with
Another example using the element directly:
const container = document.querySelector('.form-container'); ArenguForms.embed('5073697614331904', container);
In this case, the snippet gets a reference to the element and passes it directly to the