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 / DataCard Visibility us...
Power Apps
Answered

DataCard Visibility using multiple datatype actions

(0) ShareShare
ReportReport
Posted on by 11

I have an app with where I need to show/hide visibility based on 2 toggles and a dropdown box value.  Currently, I have not been able to accomplish this successfully.  Conditions are: if both toggles are true AND if the dropdown selection is "IPhone" show else hide.  I have another datacard that will need similar criteria, only the dropdown selection will be "IPhone" OR "Standard".  What concept am I missing here?  Please?

 

Dropdown Choices are:

 

None

Standard Phone

IPhone

 

 

 

If(ImmediateActionComplete_Toggle.Value= true ,If(HadEmailDataCard.Value= true ,If(!IsBlank(LookUp(HasPCTextBox.SelectedItems,Text(Value)="IPhone")), true , false ), true ))

 

Previous Attempt

 

If(ImmediateActionComplete_Toggle.Value=true, If(HadEmailDataCard.Value = true, If(HasPCTextBox.Selected.Value = "IPhone", false, true), true))

 

 

Categories:
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @lynnosler 

    I am assuming you have set HasPCTextBox as a multi-select combobox.

    If so, your Visible property should be the following:

    ImmediateActionComplete_Toggle.Value && HadEmailDataCard.Value && "IPhone" in HasPCTextBox.SelectedItems.Value

     

    For the other one:

    ImmediateActionComplete_Toggle.Value && HadEmailDataCard.Value && 
    ("IPhone" in HasPCTextBox.SelectedItems.Value || "Standard" in HasPCTextBox.SelectedItems.Value)

     

    I hope this is helpful for you.

  • lynnosler Profile Picture
    11 on at

    does true, false need to be in that expression?

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @lynnosler 

    No, not at all.  It is redundant. 

     

    The formula provided will evaluate to either true or false.  Using that in an If to determine true or false is the same as : If(true, true, false)  - it is redundant because the bolded true is already true and it is not false.

    Same with Not -  If(true, false, true) is redundant because !true is false and not true.

     

     

     

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

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 394 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 324 Most Valuable Professional

Last 30 days Overall leaderboard