CRM-8138 Add support for using jQuery.validate plugin for client-side validation of phone numbers and postal codes

    Details

    • Type: New Feature
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.3.6
    • Fix Version/s: 3.3.7
    • Component/s: Core CiviCRM, NYSS
    • Labels:
      None
    • Funding Source:
      Core Team Contract

      Description

      Include jquery.validate plugin in distribution and provide an empty jquery.civicrm-validate.js which folks can use to add their custom validation functions.

        Attachments

          Activity

          [CRM-8138] Add support for using jQuery.validate plugin for client-side validation of phone numbers and postal codes
          David Greenberg added a comment -

          Needs cross-browser testing.

          Brian Shaughnessy added a comment -

          this is working.
          however, there was a small bug in the nyss implementation of Phone.tpl
          the last set of numbers should have been set with: currentValue.substr(6,4);
          (just an FYI in case that makes its way into future core)

          also, it might be nice if the jquery.civicrm-validate.js file could be handled in an override directory, such as a tpl file, since it will always be user-configured.

            People

            • Assignee:
              Brian Shaughnessy
              Reporter:
              David Greenberg

              Dates

              • Created:
                Updated:
                Resolved: