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

Notifications

Announcements

No record found.

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)
  • Verified answer
    Nithya Gopinath Profile Picture
    17,078 on at

    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

  • Suggested answer
    shivaram Profile Picture
    3,315 on at

    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.

  • Suggested answer
    Saddamk206 Profile Picture
    777 on at

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

  • Saddamk206 Profile Picture
    777 on at

    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
    Vipin J Profile Picture
    1,603 on at

    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

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans