Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 82002

For making fields read only for the existing record

$
0
0

Hi Team,

Can anyone help me out for getting the Javascript code for making the fields read only when the existing record is opened?

Below is my code but its not working:

function DisableFields() {
debugger;
var kvsl_value;
var kvsl_key;
var value = Xrm.Page.ui.controls.get("kvsl_value");
var value = Xrm.Page.ui.controls.get("kvsl_key");
if (kvsl_value != null && kvsl_key != null) {
value.setDisabled(true);
key.setDisabled(true);
}
else {
value.setDisabled(false);
key.setDisabled(false);
}
}

Thanks in Advance,

Anita


Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images