Here’s a recommended way to lock the fields on the form in Dynamics 365
Continue Reading priyeshwagh777’s Article on their blog
Locking fields on the Form by adding dependencies in Dynamics 365 CRM
As a best practice, you must ensure that other Customizers of your system don’t accidently remove the field from the Form which is dependent on your JavaScript code on the form. Let’s consider this scenario and securing this field from removal from form – This field can be easily removed by clicking on Remove because if you look at the Field Properties, this has not been locked yet.
Blog Syndicated with priyeshwagh777’s Permission
More About This Author

Array
Dyn365CE2023.02.05Block user from signing-in into Microsoft 365 tenant
Dyn365CE2023.01.31Enable Managed Environments in Power Platform Admin Center
Dyn365CE2023.01.31Power Platform self-service analytics Data Export to Data Lake [Preview] | Power Platform Admin Center
Dyn365CE2023.01.30Tenant-Level Analytics in Power Platform Admin Center | For Power Apps and Power Automate