Mary1987
Mary1987

Reputation: 19

Javascript not working in other browsers - MS CRM 2011

I have a multi-line Text field on a form CRM 2011 with update rollup 17. I have enabled the readonly property field with the following code:

Xrm.Page.ui.controls.get('description').setDisabled(false);

It works correctly in Internet Explorer but not in any other browsers. What's the problem?

Upvotes: 2

Views: 907

Answers (2)

Chirag
Chirag

Reputation: 334

You can also write the following statement :

var description = document.getElementById("description");
if (description != null)
{
    description.disabled=false;
}

Upvotes: 1

hkhan
hkhan

Reputation: 863

It should work in other browsers as well as far as they are supporting CRM application. You should debug the Javascript in the browser that you are having issues in. Press F12 and in the console press start debugging when you load the page. It will give show you the errors in javascript and show you whether your javascript is even being loaded in the browser or not. Alternatively try Xrm.Page.getControl('description').setDisabled(false)

Upvotes: 1

Related Questions