Form Validation
Last updated
Last updated
Pages is packaged with which is currently the de-facto plugin for form validation.
Step one
Include the relevant javascript files inside the <body>
before core template script inclusions, if it's not there already.
Step two
Create the markup.
Step three
Apply the plugin.
showErrors
and errorPlacement
functions of jQuery Validate have been overridden in Pages core. As a result, the way error messages are displayed will differ depending on the form layout style you've declared in the code
Standard way of showing error messages. Will appear on any form except for forms with attached groups.
Recommended to use with Pages default form style having attached elements with .form-group-attached
wrapper. The error messages will appear in the form of popovers.