Skip to content

JavaScript library to create a form from a LegalForm definition

License

Notifications You must be signed in to change notification settings

legalthings/legalform-js

Repository files navigation

legalform-js

JavaScript library to create the HTML of a form a LegalForms definition.

Installation

For use in a PHP project

composer install legalthings/legalform-js

CDN

You can load legalform.js using the rawgit CDN.

<script src="https://rawgit.com/legalthings/legalform-js/master/legalform.js"></script>

Usage

var formHtml = new LegalForm().build(definition);

Demo

View the demo here or in material