hypejunction/forms_validation

Form validation components for Elgg

1.2.0 2015-12-10 09:24 UTC

README

Elgg 2.0

Screenshots

Invalid input

Features

  • Client-side validation with Parsley.js
  • Customizable error messages
  • Easy to integrate into existing forms
  • Extendable with custom validation rules

Usage

  • Validation rules and other options are described in Parsley.js documentation http://parsleyjs.org/
  • To enable client-side form validation, pass 'validate' parameter with form vars:

echo elgg_view_form('my/form', array(
    'validate' => true,
), array());

// or

echo elgg_view('input/form', array(
    'action' => 'action/my/action',
    'validate' => true,
));