Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

How to Switch Tab based on Option Set

Posted on by Microsoft Employee

Hello, I wanted to Show Tab based on Their Option Set Value. How to do it? What tools do we use?

this is the case : 

if we choose A, tab 1 will Appear.

If we choose B, tab 2 will Appear,

same case with

C = 3

D = 4

E = 5

4130.test.png

thankyou

  • Suggested answer
    RE: How to Switch Tab based on Option Set

    Hello,

    Basically you can hide or show the tab using java script .

    Means for any option set value ,you can show one tab and hide other tab.

    if (option == "12345" || option == null || option == undefined) {

        Xrm.Page.ui.tabs.get("Work").setVisible(false);

        Xrm.Page.ui.tabs.get("Study").setVisible(true);

    }

  • Suggested answer
    meelamri Profile Picture
    meelamri 13,204 User Group Leader on at
    RE: How to Switch Tab based on Option Set

    Hi, 

    You need JavaScript for this scenario. 

    Please refer to this thread: https://community.dynamics.com/crm/f/microsoft-dynamics-crm-forum/225192/javascript-for-show-hide-tab/609294

    Let me know if you need more guidance. 

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!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans