Read Only Tab in CRM


This is something i tried for setting all the fields within a tab as read only or disabled !

// get the div element corresponding to tab, first tab would have index Tab0, second as Tab1 and so on ..

var el=document.getElementById(‘Tab2’);

// create a recursive function

function toggleDisabled(el) {

try {

el.disabled = el.disabled ? false : true;



if (el.childNodes && el.childNodes.length > 0) {

for (var x = 0; x < el.childNodes.length; x++) {





// call the function


To hide and setting a parituclar tab as default


Author: Nishant Rana

I love working in and sharing everything about Microsoft.NET technology !

One thought on “Read Only Tab in CRM”

  1. Hi
    I have a requirement of displaying event in calendar in Dyanmics CRM 4.0. For Event entity I have rename the campaign entity to event so is there any possible ways to show event proposed start date and end date in existing calendar or do i need to create a new calendar and add it to CRM.
    my email id is
    Plz help.


Share your thoughts

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s