how to add client side phone validation in CiviCRM

Recently on CiviCRM irc and forum few people asked about adding client side validation for phone field. By default CiviCRM packages¬†validate plugin, so this can be easily implemented with minor customization. Below is the example of validating US phone number on new contact form. Index: templates/CRM/Contact/Form/Edit/Phone.tpl =================================================================== — templates/CRM/Contact/Form/Edit/Phone.tpl ¬† (revision 37399) +++ templates/CRM/Contact/Form/Edit/Phone.tpl ¬† ...

Drupal Camp Mumbai 2011 – Day 1

I had an excellent time with fellow drupalars at Drupal Camp Mumbai held at IIT, Powai. It feels great to put faces to irc nicknames and meet the people for real. This always amazes me :). I was bit late hence missed drupal song ( which I heard was fun ) but reached in time ...