I want to hide sitemap on a records from on its onload. Can any one help if that is possible ? if yes how ?
*This post is locked for comments
I want to hide sitemap on a records from on its onload. Can any one help if that is possible ? if yes how ?
*This post is locked for comments
Hi Pallavi,
Yes, you can hide tabs inside the forms using javascript. Below is the sample script to hide the tabs
===========================
var tab = Xrm.Page.ui.tabs.get("tab_1"); // tab_1 is the name of your tab and not the lable of your tab
if (tab !== null) {
tab.setVisible(true); // True = Visible; False = Hidden
}
===========================
Here is the official MS documentation in the JavaScript available for tabs
msdn.microsoft.com/.../gg328067.aspx
The below links contains all the supported javascript method (though its for CRM 2015 but still valid)-
Hope this helps
Thank you for the suggestion HIMBAP :)
Hi Guillaume ,
Thanks for your reply!
I am wanting to hide the all the tabs of the form via javascript! any suggestions on that ?
Hi Pallavi,
There is no supported way of doing that, but you can play with DOM and see if you are able to do that but this will be totally unsupported even if you are able to do that.
Hi,
yes hideing the command bar is unsupported.
Hiding particular tabs is supported. The users which don't have (per say sales rights) will not see the sales tab.
@ Ravi/ HIMBAP : can we hide tabs inside the sitemap. what if i via javascript hide all the tabs( would that be equivalent to hiding the sitemap navigation) is it possible ?
thank you for the replies. Helped get more insight
the black section in 365 that contains dynamics 365 is command bar right ? and once we navigate inside it is sitemap.
Hiding both sitemap an command bar is unsupported? any reference for the same ?
We can though hide particular tabs right ? inside the sitemap? right ?
the black section in 365 that contains dynamics 365 is command bar right ? and once we navigate inside it is sitemap.
By saying "You" can neither hide sitemap nor the command bar" u mean its unsupported?
Can you please help me with a link or a place which backs this so that i have it as a POC
The idea is to have a form inside another,looking like 1 form
Hi Pallavi,
The sitemap is on the top which contrains Sales, Service etc modules & entities. When you open the entity record, you see the command bar at the top of the form which contains New, eactivate etc button.
You can neither hide sitemap nor the command bar.
I am curious to know what would be the business requirement around that?
Hi,
I hope you want to hide command bar from entity form right ? no supported way of doing this.
Thanks
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,280 Super User 2024 Season 2
Martin Dráb 230,214 Most Valuable Professional
nmaenpaa 101,156