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 :
Finance | Project Operations, Human Resources, ...
Suggested Answer

How to enable and disable form tab pages based on base enum field

(0) ShareShare
ReportReport
Posted on by 5

Technology : Dynamic 365 Finance & Operations

My form Have one Base enum field and two tab pages. i want to hide the second tab page based on that base enum field. When i change base enum field value then my second tab page will disable. I want know the steps for changing the properties, methods. Where i have to write the code ?

I have the same question (0)
  • Suggested answer
    sai_krishna Profile Picture
    5 on at

    replay

  • Suggested answer
    ergun sahin Profile Picture
    8,826 Moderator on at

    You asked a similar question, I think the answer was not clear.
    Let's go step by step;
    First of all, I know from the other topic that this is a custom form and we have nothing to do with the first tab page as far as I understand.

    Set 2. tab page's AutoDeclaration-->Yes

    pastedimage1633008616860v2.png

    Does the enum's first value require tab 2 to be closed when the form is opened?
    If yes, you can directly set the 2.tab page's visible property to no, the tab page will not appear when form opens, or you can do it in the code in the form's init method (after super).
    Next we need to manage the visible state of the second tab page with the enum value. You can write this code (myTabPage.visible(false/true)) in modifield of enum

    pastedimage1633008273189v1.png

    Note:I did the development example in the 2012 version but there is no difference as far as I know.

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 660 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 549 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 307 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans