qg-forms.js is used to perform validations on form fields.
To use this module refer to htdocs/index.html
- Add the following scripts and stylesheets
<script src="https://static.qgov.net.au/assets/v2/script/jquery-2.1.3.min.js"></script>- And qg-forms.js file in this folder htdocs/assets/js/qg-forms.js
- And qg-forms.css file in this folder htdocs/assets/css/qg-forms.css
- Insert the form markup
Patterns for webform : https://github.com/qld-gov-au/pattern-library/blob/master/source/patterns-for-web-forms.md