I have a case where I need to hide a tab of my form based on a contact type.
Are there any suggestions that would allow a User with Customization access to create a Business Rule that can show/hide a Section (Tab) on a Form, based on the business rule.
Thanks in advance.
*This post is locked for comments
I have created some Generic Method to Hide and Show Tab and Section
Please refer here : https://vjcity.blogspot.com/2021/07/generic-method-to-hide-and-show-tab-and.html
it is not possible by Business Rules. You can use javascript for hide and show
//Hide the tab
Xrm.Page.ui.tabs.get("TabName").setVisible(false);
//Show the tab
Xrm.Page.ui.tabs.get("TabName").setVisible(true);
it is not possible by Business Rules. You can use javascript for hide and show
//Hide the tab
Xrm.Page.ui.tabs.get("TabName").setVisible(false);
//Show the tab
Xrm.Page.ui.tabs.get("TabName").setVisible(true);
Hi Yasemeen,
Using Business rules, you can hide/Show fields in Particular Section/Tab. So if you want to Hide/Show all fields in a section then you need to write action for each field which will be more difficult than Javascript. In Javascript you can directly achieve this.
Thanks.
Hi YasemeenZada,
Refer the link below for hiding tabs/section fields using Business Rules.
By using JavaScript too, we can hide/show tabs as described in links below.
https://community.dynamics.com/crm/f/117/t/158395
https://community.dynamics.com/crm/f/117/t/156616
Hope it helps.
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,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156