Dynamics CRM 4.0 - Hide or Show Tab On Record

,
The below code is for Showing/Hiding Tabs on forms within Dynamics CRM 4.0. The code below allows you to have a control attribute on another tab to show or hide the desired tab (For full instructions on setting this up, please go to http://blog.xrmconsultant.com)

//Hide Or Show Display Options Tab
if (crmForm.all."nameofyourattributetocontrolshow/hidetab".DataValue == false)
{
//hide the second tab
crmForm.all.tab4Tab.style.display = "none";
}

else {
//show the second tab
crmForm.all.tab4Tab.style.display = "";

0 comments:

Post a Comment