web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Hide form tabs based on business rules

(0) ShareShare
ReportReport
Posted on by

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 the same question (0)
  • Suggested answer
    Vipin J Profile Picture
    1,603 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
    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
    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
    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
    17,078 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Aric Levin - MVP Profile Picture

Aric Levin - MVP 2 Moderator

#2
MA-04060624-0 Profile Picture

MA-04060624-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans