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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Tabs not hiding on Create version of form.

(1) ShareShare
ReportReport
Posted on by

Is anyone else having issues or is this a known bug, where on Create view of the opportunity form, tabs not being hidden?

I have available on phones set to true, visible by default set to false. I even tried to set the tab to hidden using JS as the last line to be executed in the load function and it still shows up.

After the opportunity is created, the tab is hidden from view correctly and shown correctly based on the JS and form rules.

*This post is locked for comments

I have the same question (0)
  • ashlega Profile Picture
    34,477 on at

    Hi,

     I'm not seeing this here - tabs get hidden as expected. Is that a custom form/is that an out-of-the-box form? Is it just any tab or some specific tab only?

  • Suggested answer
    Community Member Profile Picture
    on at

    Can you check if there is a required field inside that tab. I believe if a required field is there CRM will make it visible.

  • Community Member Profile Picture
    on at

    It's the out-of-box form that has had a lot of customization's added to it.

    It looks like it's trying to show all of the tabs for the (on create) view of the opportunity, even though none should be showing except the General tab for on create.

  • Community Member Profile Picture
    on at

    No required fields, the tab is literally showing nothing right now for the on create view.

  • Community Member Profile Picture
    on at

    I've attached a screenshot of one of the tabs - Outcome.

    8512.image1.PNG

  • ashlega Profile Picture
    34,477 on at

    Wondering if you are changing visibility of sections/fields in your scripts as well.. I think I saw situations where crm would get confused if tried to hide a tab, and, then had another script that would display a section in that tab..

  • Community Member Profile Picture
    on at

    Ya there is a lot of hiding/showing based on certain criteria.

    For the Outcome tab shown above, it has three sections.

    The tab is set to visible (false)

    Two sections set to visible(true)

    one section set to visible(false)

    Some of the sections have fields where some are hidden by default and some that are shown by default.

    I guess my assumption when scripting this out was that visibility would flow from parent to child.

    If tab is visible, check to see if section is visible, if section is visible, show fields

    If tab is not visible, everything gets hidden.

  • ashlega Profile Picture
    34,477 on at

    That's how it should be, but I would still try to comment out that part of your JS that's working with the sections/fields, and only keep the part that's setting tab visibility.. see if that helps. If it does, then,maybe, try not to do anything with the sections/fields if your tab is already hidden.

  • Community Member Profile Picture
    on at

    100% of that code though is within the true branch of IF conditions that aren't evaluating to true. (otherwise I'd see a lot more inconsistencies.

    Which are there any debugging tools for phones? I'm not even sure how to start debugging this.

  • Community Member Profile Picture
    on at

    Hiding /Showing tabs is not supported in Mobile . According to the SDK :

    The following methods won’t work in Dynamics 365 mobile clients (phones and tablets).

     - Xrm.Page.context.getCurrentTheme

    - Xrm.Page.uiViewPort Methods

    - Xrm.Page.data.entity.getDataXml

    - Xrm.Page.ui.navigation.items collection

    - Xrm.Page.ui.formSelector object methods

    - Xrm.Page.ui tab.setDisplayState.

     

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
ScottDurow Profile Picture

ScottDurow 2

#2
GJones Profile Picture

GJones 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans