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

Notifications

Announcements

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 988
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 2 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 759 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 310 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 228

Last 30 days Overall leaderboard