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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Show or Hide Tab Based...
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:
I have the same question (0)
  • Verified answer
    ChrisL58 Profile Picture
    on at

    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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 463

#2
WarrenBelz Profile Picture

WarrenBelz 364 Most Valuable Professional

#3
11manish Profile Picture

11manish 275

Last 30 days Overall leaderboard