Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Show or Hide Tab Based on a Condition

(0) ShareShare
ReportReport
Posted on by

Hello and good morning,


I am hoping to find a solution to hide a table located in my Tab Index on my form when a condition is met.
I have a status field called DataCardValue34_1 and what I would like to do is HIDE A TAB and its underlying fields when a certain status is displayed as that field is driven by a Power Automate workflow.

ChrisL58_0-1719240850049.png

ChrisL58_1-1719240891946.png

Currently I am driving the form fields to show or hide based on the selected tab using the variable varTabSelected=1 on each fields Visibility property.

ChrisL58_3-1719241191308.png

 

Is this possible and if so can someone provide guidance?
Thank you!

 

 

Categories:
  • Verified answer
    ChrisL58 Profile Picture
    on at
    Re: Show or Hide Tab Based on a Condition

    I was able to resolve this by just removing the index value from the table when a condition was met.

    If(
        DataCardValue34_1.Selected.Value <> "Submitted in COUPA" || DataCardValue34_1.Selected.Value = "Closed/Complete",
        Table(
            {
                ID: 1,
                Label: "Broker Fee Request"
            },
            {
                ID: 2,
                Label: "Funding Team"
            },
            {
                ID: 3,
                Label: "Next Steps"
            },
            {
                ID: 5,
                Label: "Attachments"
            }
        ),
        If(
            DataCardValue34_1.Selected.Value = "New",
            Table(
                {
                    ID: 1,
                    Label: "Broker Fee Request"
                },
                {
                    ID: 3,
                    Label: "Next Steps"
                },
                {
                    ID: 4,
                    Label: "Operations Group"
                },
                {
                    ID: 5,
                    Label: "Attachments"
                }
            ),
            Table(
                {
                    ID: 1,
                    Label: "Broker Fee Request"
                },
                {
                    ID: 2,
                    Label: "Funding Team"
                },
                {
                    ID: 3,
                    Label: "Next Steps"
                },
                {
                    ID: 4,
                    Label: "Operations Group"
                },
                {
                    ID: 5,
                    Label: "Attachments"
                }
            )
        )
    )

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,668 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard