RSjoomla! - Quality Joomla! Components

My Account






Lost Password?
No account yet? Register

Newsletter Subscribe

If you would like to be one of the first people to hear about the release of our new components then make sure you have subscribed to our announcements list! We won't bug you with unnecessary stuff.




RSform!Pro Logo User Guide

Custom validation rules (!) 

RSform! Pro allows to add custom validation rules for the components that allow validation rules.

In order to add a new validation rule, navigate in your Joomla file list, go to components/com_rsform/controller/validation.php. In this file you will find all the validation rules defined. In order to add a new validation rule, edit the file validation.php in the following manner:

  1. Add a new function that allows only one parameter. The name of the function will be the name of the validation rule, as displayed when adding a new component.
  2. On success, the function should return true. On fail, the function should return false.
Caution: don't delete any validation rules unless you know what you are doing. In you still wish to delete one validation rule, check to see that the validation rule is not used anywhere inside your forms.