![]() |
#1 |
Участник
|
CRM Programmer: Mask the phone fields
Источник: http://crmpro.blogspot.com/2009/10/m...ne-fields.html
============== I was need some mask on the "mobilephone" field in contact card. So I was combine some google search result with my experience and got next code: //base maskphone function window.applyMask = function() { // var of fields wich must be masked var ele = document.getElementById("mobilephone"); var FormatPhoneHandler=function() { var PH = this.value; var re = /\D/g; // +7 - this is country code of Russia, so this is decision only for one country PH = PH.replace("+7",""); PH = PH.replace(re,""); if(PH.length
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору. |
|
|
|