Lock fields on Editable Grid using JavaScript in Dynamics 365 CRM


This article explains how to lock selected fields on an Editable Grid in Dynamics 365 CRM using JavaScript. By default, all editable fields are exposed on the Editable Sub-grid, but you may want to restrict certain fields from being edited by end users. The article provides a sample JavaScript code that loops through the fields you want to lock and disables them on the Editable Grid. You can register this code on the OnRecordSelect event of the Editable Grid control. This allows you to keep most fields open for editing while locking specific fields.


Article 10m

Login now to access my digest by 365.Training

Learn how my digest works
Features
  • Articles, blogs, podcasts, training, and videos
  • Quick read TL;DRs for each item
  • Advanced filtering to prioritize what you care about
  • Quick views to isolate what you are looking for right now
  • Save your favorite items
  • Share your favorites
  • Snooze items you want to revisit when you have more time