Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Hide form tabs based on business rules

Posted on by Microsoft Employee

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

  • Suggested answer
    Vipin J Profile Picture
    Vipin J 1,583 on at
    RE: Hide form tabs based on business rules

    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

  • Saddamk206 Profile Picture
    Saddamk206 777 on at
    RE: Hide form tabs based on business rules

    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);

  • Suggested answer
    Saddamk206 Profile Picture
    Saddamk206 777 on at
    RE: Hide form tabs based on business rules

    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);

  • Suggested answer
    shivaram Profile Picture
    shivaram 3,315 on at
    RE: Hide form tabs based on business rules

    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.

  • Verified answer
    Nithya Gopinath Profile Picture
    Nithya Gopinath 17,074 on at
    RE: Hide form tabs based on business rules

    Hi YasemeenZada,

    Refer the link below for hiding tabs/section fields using Business Rules.

    http://www.dynamicscrmpros.com/hiding-section-fields-microsoft-dynamics-crm-2013-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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans