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 / 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?

  • 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

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