Hi,
Given below my code.
function example (){
alert('1');
var rgCell = /[0-9]{3}-[0-9]{3}-[0-9]{4}/;
alert('2');
var mobile =Xrm.Page.getAttribute(“new_mobilenum”).getValue( );
alert('3');
}
Hear alert working 1 and 2 but 3 is error. given below paste my error
Script Error
One of the scripts for this record has caused an error. For more details, download the log file.
ReferenceError: 'example' is undefined at eval code (eval code:1:1)
Regards,
Naresh.