Skip to content
Travis Tidwell edited this page Mar 17, 2017 · 17 revisions

This library includes 2 major components.

  • Form.io API Interface - This component allows you to easily communicate to the Form.io API's from within your JavaScript application, like so.

    import { Formio } from 'formiojs';
    let formApi = new Formio('https://examples.form.io/example');
    formApi.loadForm().then(function(form) {
      console.log(form)
    });
  • Form Renderer - This is the core form rendering library which renders a Form.io JSON form schema within your page.

    import { FormioFrom } from 'formiojs/formio.form';
    let form = new FormioForm(document.getElementById('formelement'));
    form.src = 'https://examples.form.io/example';
Clone this wiki locally