Symptoms:

Person arrow

On the New Appointment screen, selecting the green arrow next to the Person: field (Cmli_Comm_PersonId) may result in the following error being displayed:

An error has occurred in the script on this page
Object doesn’t support property or method 'NavPopupUrlcmli_comm_personid'

The above issue has been reproduced when using Internet Explorer 10.


Workaround:

The issue does not occur when using Chrome. As an alternative workaround, you can add the following as a Custom Content script on Administration -> Customisation -> Comm_Link -> Screens -> CommWebPicker.

<script>
var instanceRegExp = /\/([a-z|0-9|-]+)\/eware.dll/gi; instanceRegExp.exec(document.location.href);
var installName = RegExp.$1;

function QryStr(key) {

    var m=window.location.search.match(new RegExp("([?&]" + key + "=)([^&]*)", "i"));    
    return (m)?m[2]:"";
}

function ShowPopupOptionsWindowcmli_comm_personid() {

    oPopupcmli_comm_personid = crmPopup.createNewPopup(window, window);    
    oPopupcmli_comm_personid.css = document.location.protocol + "//"        
        + document.location.host + "/" + installName + "/Themes/color1.css";    
    oPopupcmli_comm_personid.jQueryUrl="/" + installName + "/jQuery/jquery-1.7.1.min.js";    
    oPopupcmli_comm_personid.effect = "fadeIn";    
    oPopupcmli_comm_personid.html = '<DIV STYLE="cursor:default" class="SearchSelectTied">'        
        + '<DIV style="margin:4;"><SPAN TABINDEX=0 CLASS=\x22SearchSelectText\x22'        
        + 'ONMOUSEOVER=\x22this.className=\x27SearchSelectTextR\x27;\x22 ONMOUSEOUT=\x22this.className'        
        + '=\x27SearchSelectText\x27\x22 onClick=\x22parent.NavPopupUrlcmli_comm_personid(\x27/'        
        + installName + '/eware.dll/Do?SID=' + QryStr("SID")        
        + '&Act=512&Mode=1&CLk=&Key0=4&Key4=1&ViewField=Pers_FullName,Pers_PhoneFullNumber,'        
        + '&JumpReturnCol=cmli_comm_personid&JumpIdField=Pers_PersonId&JumpNameField='        
        + 'Pers_FullName&SearchEntity=Person&SearchTable=vSearchListPerson&SearchSql='        
        + 'Pers_CompanyID%3D' + document.EntryForm.cmli_comm_companyid.value        
        + '&searchsqld=&SsDef=20&LinkedField=&Restrictor=Pers_AccountId&RF=cmli_comm_accountid'        
        + '&TiedField=cmli_comm_personid&SearchText=\x27, \x27cmli_comm_personid\x27,\x27/'        
        + installName + '/eware.dll/Do?SID=' + QryStr("SID")        
        + '&Act=1275&Mode=1&CLk=&Key0=4&Key4=1&ViewField=Pers_FullName,Pers_PhoneFullNumber,'        
        + '&JumpReturnCol=cmli_comm_personid&JumpIdField=Pers_PersonId&JumpNameField='        
        + 'Pers_FullName&SearchEntity=Person&SearchTable=vSearchListPerson&SearchSql='        
        + '&searchsqld=&SsDef=20&LinkedField=&Restrictor=Pers_CompanyId&RF=cmli_comm_accountid'        
        + '&TiedField=cmli_comm_personid&SearchText=\x27);\x22 ><SPAN STYLE=\x22margin-left:'        
        + '10\x22>Find</SPAN></SPAN><BR><SPAN TABINDEX=0 CLASS=\x22SearchSelectText\x22 '        
        + 'ONMOUSEOVER=\x22this.className=\x27SearchSelectTextR\x27;\x22 ONMOUSEOUT=\x22'        
        + 'this.className=\x27SearchSelectText\x27\x22 onClick=\x22parent.Clearcmli_comm_personid();'        
        + '\x22 ><SPAN STYLE=\x22margin-left:10\x22>Clear</SPAN></SPAN></DIV></DIV>';

    oPopupcmli_comm_personid.show(6,12,55,39, document.getElementById('SearchSmallcmli_comm_personidIMG'));
}

function NavUrlcmli_comm_personid(ID,url,fieldname){

    var e='';

    if(ID) {

        if(document.EntryForm.cmli_comm_personid.value == ID) {

            return false;        
        }                
        else e='&ID='+ID;    
    }    
    else{            
       
        if(document.EntryForm.cmli_comm_personid != null && document.EntryForm._HIDDENcmli_comm_personidTEXT.value!='') {

            if(confirm('The field is already matched. Do you want to clear the results?')) {

                Clearcmli_comm_personid();            
            }

            return;        
        }    
    }        

    var namedText;    
    var tmpUrl = '/'+installName+'/eware.dll/Do?SID='+QryStr("SID")+'&Act=1275&Mode=1&CLk=&Key0=4&Key4=1&ViewField=,'        
        + 'Pers_FullName,Pers_PhoneFullNumber,&JumpReturnCol=cmli_comm_personid&JumpIdField=Pers_PersonId&'        
        + 'JumpNameField=Pers_FullName&SearchEntity=Person&SearchTable=vSearchListPerson&SearchSql=Pers_CompanyID%3D'        
        + document.EntryForm.cmli_comm_companyid.value        
        + '&searchsqld=&SsDef=20&LinkedField=&Restrictor=Pers_CompanyId&RF=cmli_comm_companyid&'        
        + 'TiedField=cmli_comm_personid&SearchText=';

    if( (document.EntryForm.cmli_comm_personidTEXT)!=null ) {

        namedText=document.EntryForm.cmli_comm_personidTEXT.value;    
    }

    var u=tmpUrl+encodeURIComponent(namedText)+e;    
    var sRV=sRTV='';

    if(document.EntryForm.cmli_comm_companyid)        
        sRV=document.EntryForm.cmli_comm_companyid.value;

    if(document.EntryForm.cmli_comm_companyidTEXT)        
        sRTV=document.EntryForm.cmli_comm_companyidTEXT.value;            
   
    if(sRV=='') {

        if(document.EntryForm.cmli_comm_accountid)            
            sRV=document.EntryForm.cmli_comm_accountid.value;

        if(document.EntryForm.cmli_comm_accountidTEXT)            
            sRTV=document.EntryForm.cmli_comm_accountidTEXT.value;

        if(sRV!='') u+='&altRestrictor=account' ;
    }

    if(sRV)        
        u+='&RestrictorValueValue=' + encodeURIComponent(sRV);

    if(sRTV)        
        u+='&RestrictorText=' + encodeURIComponent(sRTV);

    document.getElementById('SEARCHFRAMEcmli_comm_personid').src=u;
}
</script>

Status:

The issue has been raised to the development team, and will be addressed in a future patch. It is not reproducible in v7.1j.