Enable / Disable Header Field on CRM form 2013

To access header fields using JavaScript, use header keyword before field schema name.

To Disable Or Readonly:

Xrm.Page.getControl("header_<schemaname>").setDisabled(true);

To Enable:

Xrm.Page.getControl("header_<schemaname>").setDisabled(false);

Hope it helps 🙂

Advertisements