
Hi Guys,
I have tried to disable functionality of add new of look up by following code but it's giving null value.
var h1 = window.parent.document.getElementById("angus_productgrade");
I tried this but it's not working, has anyone tried doing this thing via Javascript, I don't want to do it via security roles
do you want to disable lookup field?
please use Xrm client development model instead of manipulating DOM directly.
please reference to following code snippet
Xrm.Page.getControl("your field name").setDisabled(false) //disable lookup field