Details
-
Type: New Feature
-
Status: Done/Fixed
-
Priority: Major
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.2.0, 4.2.1
-
Fix Version/s: 4.3.0
-
Component/s: Core CiviCRM
-
Labels:None
Description
- Upgraded to jQuery validate 1.9
- Created template file for conditional inclusion. To validate a form add this to the form's template: {include file="CRM/Form/validate.tpl"}
- It's possible to set extra params and callback functions either from php or smarty by adding them to the CRM.validate object.
- jQuery.validate uses css classes to determine how a field should be validated. Our form engine already adds the "required" class, but others (email, url, creditcard) must be added manually.
Attachments
Issue Links
- is supplemented by
-
CRM-10972 Form validation is broken and credit card errors are not displayed to the user
- Done/Fixed