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 / Different multiple if ...
Power Apps
Unanswered

Different multiple if conditions in visible property

(1) ShareShare
ReportReport
Posted on by 36

I have created tabbed structure where i applied following code in the visible property of my DataCard in my form  i.e. variabletabselected=2, and again i have to apply another visible property like if(datacardvalue.Value=true,true,false).

 

so i have to apply both visible formulae in the same datacard. i tried with below formulae, but not working.

if(datacardvalue.Value=true&&variabletabselected=2,true,false)

 

Please help me solving this issue.

 

Thanks in advance

Mahesh

Categories:
I have the same question (0)
  • BideyYusuf Profile Picture
    387 on at

    Hi @Mahesh005 , on what condition are you trying to initiate the visibility of the datacard?

     

    What is the action you base it on? Just explain the condition you want your datacard to be visible or not, then we can take it from there

  • Mahesh005 Profile Picture
    36 on at

    hello @BideyYusuf 

     

    I have to achieve two conditions on visible property of the same data card. i.e. 1. tow go the particular tab (button) variabletabselected=2, and the second condition is if(datacardvalue.Value=true,true,false).

     

    Thanks 

    Mahesh

     

  • BideyYusuf Profile Picture
    387 on at

    Hi, @Mahesh005 , so you want to make the tab visibility base on 2 conditions.

    The button tab and a datacard value.

     

    Where is this Datacard?

  • BideyYusuf Profile Picture
    387 on at

    @Mahesh005 Is this what you were trying to achieve?

    2022-11-09_08h15_49.gif
  • Mahesh005 Profile Picture
    36 on at

    Yes @BideyYusuf 

     

    Please provide the code for applying multiple conditions on visible property. 

     

    Thanks 

    Venkatesh

     

    Thanks 

    Mahesh

  • BideyYusuf Profile Picture
    387 on at

    @Mahesh005 Must the 2 conditions be true? 

    2ndly, you havent answer the question on where the Datacard is. is it outside the component control or within the same Datacard control.

     

    Did you see the Gif Image i sent, was that exactly what you wanted to achieve? Answering all these will help us to understand what you wanted to do, otherwise we will just be sending codes which wont work for your scenario.

  • Mahesh005 Profile Picture
    36 on at

    Hi @BideyYusuf 

     

    data card is inside the Getting Ready button.

     

     

    Thanks

    Mahesh

  • BideyYusuf Profile Picture
    387 on at

    @Mahesh005  Then you dont need another Datacard value to control the visibility of the Tab, the Tab toggle between HIDE VISIBILITY AND SHOW VISBILITY by just clicking it.

    for example.. use this code on select property of the tab. NOTE!, this depends on how many TABS you have in your app.

     

    On the Tab Select put If(variabletabselected=1,Set(varshowFields,0),Set(varshowFields,1))

    on the visible property of the datacard itself, put If(varshowFields=1||varshowFields=-1,true,false).

     

    if you dont understand, kindly send the snapshot of your form lets see how we can work together on it.

  • Mahesh005 Profile Picture
    36 on at

    My Requirement is like. by clicking on button in the gallery it will show some of the fields in the form as shown in below figure.

     

    Mahesh005_0-1667984855778.png

    Mahesh005_1-1667984894437.png

     

    One Visible condition is as show in above figure. and another visible condition some of the fields has to be disabled according to the yes/no column in sharepoint list.

     

    so i am trying this with this forumula in the datacard visible property but no luck.. if(datacardvalue.Value=true&&variabletabselected=2,true,false)

     

    Thanks 

    Mahesh

     

  • Mahesh005 Profile Picture
    36 on at

    hi @BideyYusuf 

     

    =I am trying to achieve the requirement with nested if. still not working.

     

    Thanks

    Mahesh

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 525 Most Valuable Professional

#2
Haque Profile Picture

Haque 273

#3
Kalathiya Profile Picture

Kalathiya 232 Super User 2026 Season 1

Last 30 days Overall leaderboard