Making Form readonly Through Javscript

Making Form Read only Through JavaScript Making all the fields in a form Locked(i.e read only) through java script function lock() { var controls = Xrm.Page.ui.controls.get(); for (var i in controls) { var control = controls[i]; if (control.getDisabled && control.setDisabled && !control.getDisabled()) { control.setDisabled(true); } } } Let's Enjoy 🙂

BPF Fields locking and unlockingbased on the stages

Bpf fields locking and unlocking based upon the stages Scenario: 1. Business Process Flow has three stages, based on the active stage lock the fields which are present in the other 2 stages 2. Also keep one section in the form which will be hidden in the initial stage and visible in other 2 stages. … Continue reading BPF Fields locking and unlockingbased on the stages

BPF Fields locking and unlockingbased on the stages

Bpf fields locking and unlocking based upon the stages Scenario: 1. Business Process Flow has three stages, based on the active stage lock the fields which are present in the other 2 stages 2. Also keep one section in the form which will be hidden in the initial stage and visible in other 2 stages. … Continue reading BPF Fields locking and unlockingbased on the stages

JavaScript Objects on Subgrid

JavaScript Objects on Subgrid: These features are available in MS CRM 2016 both on-premises and online. JavaScript functions against SubGrid. Below are list of useful objects which we can use in most of the requirements. Get EntityName of SubGrid: Xrm.Page.getControl("States").getEntityName(); This function will returns the logical name of entity that we are using in SubGrid … Continue reading JavaScript Objects on Subgrid