/**
* Disable all CRM fields on a CRM form's tab.
* @author Daniel Cai, http://danielcai.blogspot.com/
*
* Parameters:
* @param tabIndex: The index number of the tab that you want to disable the
* CRM fields. It's a zero-based number.
*/
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;
}
}
}To use the function, you simply call it with the tab's index number as the single parameter, e.g.
disableTab(2); // Disable all CRM fields on the third tabHave fun.

Very good Daniel.
ReplyDeleteThanks, Mitch
Thanks Mitch...
ReplyDeleteDaniel
Thanks a lot, man! This is exactly what I've looked for!
ReplyDeletePerfect ! Thanks Daniel.
ReplyDelete