Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 79901

How to hide lookup add new button

$
0
0

Can anybody explain me how to hide look up new button.

Tried the following code but no use.

function RemoveNewButtonFromLookUp()
{
if(parentcontactid)
{

var lookUpControl = Xrm.Page.getControl(parentcontactid);

if(lookUpControl)
{

lookUpControl.addPreSearch(function () {
setTimeout(function() {
document.getElementById("Dialog_" + parentcontactid+ "_i_IMenu").childNodes[1].childNodes[1].style.display = "none";
}, 100);
});
}
}
}


Viewing all articles
Browse latest Browse all 79901

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>