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 / Function with multiple...
Power Apps
Unanswered

Function with multiple conditions

(0) ShareShare
ReportReport
Posted on by 991
I have a field that I want to be visible If TabSelected=4 & an UpdateContext Variable is True & if the datacard is not blank and when I click another tab and come back to tab 4, the data card is not visible again.
Categories:
I have the same question (0)
  • SaiRT14 Profile Picture
    1,990 Super User 2025 Season 1 on at
    Hi  ,
     
    Set the Visible property of the field in the DataCard - If(
        TabSelected = 4 &&
        UpdateContextVariable = true &&
        !IsBlank(ThisItem.YourFieldName),
        true,
        false
    )
     
    Modify your UpdateContext logic to use Set instead. For example: When the condition becomes true: Set(UpdateContextVariable, true);
    If needed, reset the variable to false only when required​​​​​​​ Set(UpdateContextVariable, false);
     
    Ensure the Reset property of the DataCard or form is not being triggered unintentionally and Ensure no formula associated with tab changes unintentionally resets variables or values. If(
        TabSelected = 4, 
        Set(UpdateContextVariable, true),
        // Keep UpdateContextVariable unchanged for other tabs
        UpdateContextVariable
    )
     
    Create a separate variable to handle the DataCard's visibility independently of tab selection: 
    When the condition is met: Set(DataCardVisible, true);
     
    Use this variable in the Visible property DataCardVisible
     
    try out

     

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 Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 101 Most Valuable Professional

#2
Haque Profile Picture

Haque 81

#3
VASANTH KUMAR BALMADI Profile Picture

VASANTH KUMAR BALMADI 70

Last 30 days Overall leaderboard