Skip to content

How to use validation?

rbsl-gaurav edited this page Jun 4, 2013 · 1 revision

We are using http://reactiveraven.github.io/jqBootstrapValidation/ for validation in Rb Framework. To Apply Validation you need to take care of following things.

  • Form class should be “rb-validate-form”
  • Email Validation : class=”validate-email”
  • Required Validation : class=”required” or required=”required” or aria-required=”true”
  • Number Validation : class=”validate-number”
  • No validation : class=”no-validate”
  • Minimum Number : min="0"
  • Maximum Number : max="0"

For applying this validation you need to display the content in the below format. `

getLabel('name'); ?>
getInput('name'); ?>
`

and in form xml you need to add a property in each field to be displayed. labelclass="control-label"

Clone this wiki locally