Skip to content
Home » Documentation » Client side Integration Guide

Client side Integration Guide

In order to display xmlform.io Web Forms in our web pages, we have to include two JavaScript libraries:

<script src="https://cdn.form.io/js/formio.embed.js"></script>
<script src="https://xmlform.io/js/xmlformio.embed.js"></script>

Then, we need a div element with id where the form will be displayed:

<div id="myform"></div>

Then afterwards in additional JavaScript block we have to create the form itself. The JavaScript function for the form creation is:

XmlForm.createForm(pageElement, xmlForm, xmlData = null, callback = null);