Please wait, loading...

 

How to make a MS CRM form read only by Javascript

December 18, 2017
Use this code on the page load event of MS CRM  2011/2013


function ReadOnly ()
{
    var controls = Xrm.Page.ui.controls.get();
    for (var i in controls)
    {

        var control = controls[i];
        if (!control.getDisabled())
        {
            control.setDisabled(true);
        }
    }
}

SOURCE : mscrm.com

https://i0.wp.com/microsoftdynamics.in/wp-content/uploads/2020/04/Microsoftdynamics365.png?fit=640%2C651&ssl=1
Microsoft Dynamics Community Profile

Learn more