To find out more about this library as well as see a demonstration of what you can do with this library, go to the Examples and Demo site @ https://formio.github.io/formio.js
To install this SDK into your project, you can use the following command within your terminal.
npm install --save formiojs
The following is a simple example on how to render a form within your HTML application.
This will render the following form within your application.
You can also render JSON directly instead of referencing the embed URL from Form.io.
var form = document;formform =components:type: 'textfield'key: 'firstName'label: 'First Name'placeholder: 'Enter your first name.'input: truetype: 'textfield'key: 'lastName'label: 'Last Name'placeholder: 'Enter your last name'input: truetype: 'button'action: 'submit'label: 'Submit'theme: 'primary';
This will render the JSON schema of the form within your application.
This library can also be used to render a form wizard within your application using the Wizard library.
For an example of how this looks and works, check out the following Form.io Form Embedding CodePen
You can also use this within an ES6 application as follows.
;let formio = '';formio;
To view the full SDK Documentation, go to Developer SDK Documentation