Form Fields Making Read only
Making all the form fields readonly, by getting the controltype of fields , which excluding Iframes and Webresorces and Subgrids
function ReadOnly(){ var controls = Xrm.Page.ui.controls.get(); for (var i in controls) { var ControlType = controls[i].getControlType(); if(ControlType != "iframe" && ControlType != "webresource" && ControlType !="subgrid") { controls[i].setDisabled(true); } }
Kudos. I enjoy it.
LikeLiked by 1 person
I appreciate looking through your internet site. Thanks!
LikeLiked by 1 person