@mtvh/formio-js
v5.0.2
Published
MTVH custom templates, components and styling for Form.io
Keywords
Readme
MTVH Formio 4 Library
MTVH custom Form.io templates, components and styling for MTVH websites:
Branch
Branch name: master
This library is dependant on:
- Formio v4.*
- Bootstrap 4.*
- jquery 3.6.3 (required for uploadcare widget)
Installation
Along with the above dependancies, there are 1 file from this package that need to be included in any website to run the library.
/dist/mtvh-formio.use.min.js
Please note that you will also need the css from the MTVH Design System to ensure correct styling of components.
Development
npm installwill download dependancies and build all dist files.npm run builderwill start the builder environment to build forms and test out new components - http://localhost:3000npm run watchwill watch for changes to sass, components, options and templates, and build just the depenancy files for the builder -mtvh-formio.cssandmtvh-formio.use.min.js.npm run buildBuild all dist files prior to publishing.
Live URLs:
- Builder: https://formbuilder.mtvh.digital/
MTVH Formio 5 Library
MTVH custom Form.io templates, components and styling, compatible with Formio-JS v5.
Branch
Branch name: mtvh-formiojs-version-5
This is a separate branch of the library maintained to support both Formio v4 and v5 in parallel.
To access the Formio 5 compatible version, switch to the
mtvh-formiojs-version-5branch.
Dependencies
- Formio JS v5.*
- Bootstrap 5.*
- jQuery 3.6.3 (required for the Uploadcare widget)
- Design System CSS (for correct component styling)
Installation
Same as the Formio 4 Library above. Include the following file in any website to run the library:
/dist/mtvh-formio.use.min.js
You will also need the CSS from the MTVH Design System for correct component styling.
Development
- same as the Formio 4 Library above.
Deployment (CI/CD)
Commits pushed to the mtvh-formiojs-version-5 branch will automatically deploy the following files to the AWS S3 bucket:
| File | Environment |
|------|-------------|
| mtvh-formio.use.min.js | Production forms & builder |
Live URLs:
- Forms: https://mkii.forms.mtvh.digital/
- Builder: https://formbuilderv5.mtvh.digital/
