My Photo

Microsoft Dynamics 365

Official Blog for Microsoft Dynamics Functional and Technical Solutions....
Browsing Category " make field read only "

Set Field Read Only Using JavaScript In MSCRM ( Lock Field in MS CRM )

Hey Below is the Code To Set a Attribute / field on form Read only (Lock) using JavaScript in MS CRM .

// Get Control of entity
// Now set the property to lock the field

Note : Xrm.Page.ui.controls.get("new_companyreference"); by this we get full UI controls of the attribute / field by which we can set or get any ui property of that field .

SOURCE : JUST2CODE.IN Subscribe to our YouTube channel :