An embedded JavaScript snippet to generate the WOTC.com screening form directly in your website or application.
<form id="specialForm"></form>
<script src="https://cdn.jsdelivr.net/gh/wotc-com/wotc-form@master/build/js/forms.js"></script>
<script>
WotcForm.init('specialForm', {
groupId: 484158277, // required
formId: 589972586, // required
data: { // optional to prefill form
name: 'Bob Hope',
dob: '1903-05-29'
}
});
</script>
npm install
NOTE: Importing directly to a React project and using a react component has not been tested. Currently only testing has been direct front-end implementation.
npm run start
- ES6 Support via babel (v7)
- JavaScript Linting via eslint
- SASS Support via sass-loader
- Autoprefixing of browserspecific CSS rules via postcss and postcss-preset-env
- Style Linting via stylelint