disable field
crmForm.all.new_link.disabled = false; //disable the field
crmForm.all.new_link.disabled = true; //enable the field
hide/unhide field
crmForm.all.<fieldname>_c.style.display = "none";
crmForm.all.<fieldname>_d.style.display = "none";
hide/unhide section
crmForm.all.<fieldname>.parentElement.parentElement.parentElement.style.display="none";
another way :
document.getElementById("tab<tabNo>").childNodes[0].rows[<sectionNo>].style.display = "none";
// <tabNo> is zero based tab number from left. <sectionNo> is zero based section number from top.
hide/unhide tab
document.getElementById("tab<tabNo>Tab").style.display = "none";
// <tabNo> zero based tab number from left
crmForm.all.new_link.disabled = false; //disable the field
crmForm.all.new_link.disabled = true; //enable the field
hide/unhide field
crmForm.all.<fieldname>_c.style.display = "none";
crmForm.all.<fieldname>_d.style.display = "none";
hide/unhide section
crmForm.all.<fieldname>.parentElement.parentElement.parentElement.style.display="none";
another way :
document.getElementById("tab<tabNo>").childNodes[0].rows[<sectionNo>].style.display = "none";
// <tabNo> is zero based tab number from left. <sectionNo> is zero based section number from top.
hide/unhide tab
document.getElementById("tab<tabNo>Tab").style.display = "none";
// <tabNo> zero based tab number from left