jump to navigation

Microsoft Dynamics CRM 4.0 disabling all fields on a tab July 14, 2010

Posted by jarrettexpertcrm in Microsoft CRM General.
Tags: , , , , , , , , , ,
trackback

Ever need to disable all fields on a tab not just one or two? Want to know a quick way of doing it instead of crmForm.all.field.disabled = true; for every field? Of coarse you have or you wouldn’t be here :).

Onload

function disableTab(tabIndex)
{
var tab = document.all[“tab” + tabIndex];
for (var i = 0; i < tab.all.length; i++) {
if (tab.all[i].Disabled !== undefined) {
tab.all[i].Disabled = true;
}
}
}
disableTab(2);

Just replace the “2” in disableTab(2) with the proper tab number

Hope this helps!

For more information about Dynamics Four or to contact us please visit http://dynamics4.com

Advertisements

Comments»

No comments yet — be the first.

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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

%d bloggers like this: