“Social Pane” a new feature introduced in Microsoft Dynamics CRM 2013. We can see POSTS, ACTIVITIES and NOTES tab in Social Pane.
We can hide them as per the business need. Will show you with a simple example to hide ACTIVITIES tab from Social Pane.
Example: Hide NOTES tab from Social Pane in Contact Entity
Solution: Include the below Script in a JavaScript Webresource and call the function “HideSocialPaneItems” in Contact Onload and include the input parameter as “ACTIVITIES” to hide ACTIVITIES tab.
//Description : To hide POSTS or ACTIVITIES or NOTES in Social Pane
//Input : “POSTS” or “ACTIVITIES” or “NOTES”
function HideSocialPaneItems(socialPaneType) { var ctrlElement = document.getElementById("header_notescontrol"); if (ctrlElement.children != null && ctrlElement.children.length > 0) { for (var ele = 0; ele < ctrlElement.children.length; ele++) { var ctrl = ctrlElement.children[ele]; if (ctrl.title == socialPaneType) { ctrl.style.display = "none"; if (ele + 1 < ctrlElement.children.length) { ctrlElement.children[ele + 1].click(); return; } else if (ele - 1 >= 0) { ctrlElement.children[ele - 1].click(); return; } } } } }
Output: