Formio.js renders JSON schema forms in web apps with vanilla JavaScript and talks to Form.io APIs. It includes a builder, renderer, embed helper, and SDK.
Overview
Formio.js is the JavaScript client for the Form.io ecosystem. It renders forms defined as JSON schema inside HTML applications without requiring jQuery, Angular, React, or Vue as dependencies, though it can sit alongside those stacks.
The library can display a schema as a web form, connect submissions to Form.io APIs, and embed forms with a one-line embed call. A built-in form builder produces the JSON used for rendering. Component support includes nested layouts, date and time fields, selects, input masks, and related form controls.
Developers install the package via npm as @formio/js and use APIs such as createForm to mount a form on a DOM element. Forms can be loaded from a remote embed URL or from inline JSON. Wizard-style multi-step forms render when the schema display property is set to wizard.
Beyond rendering, the same package acts as a JavaScript SDK to load forms, submit data, and integrate with Form.io backend services. Documentation and examples are published on Form.io help and demo sites, and JSFiddle is suggested for experimenting with the renderer.
Key features
- Vanilla ES6 implementation
- JSON schema form rendering
- Embedded form builder
- Wizard multi-step forms
- One-line form embedding
- JavaScript API SDK
- Nested components and masks
- Remote or inline JSON schemas
Use cases
- Embedding Form.io forms in custom sites
- Building forms without SPA frameworks
- Submitting data to Form.io APIs
- Prototyping form UIs in JSFiddle