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 / Show or hide field bas...
Power Apps
Answered

Show or hide field based on two different values

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello people, what I need seems pretty simple but I can't get it to work.

 

I need to hide or show a field based on two values of another dropdown.

 

I have the options:

 

Comunication

Sponsoring

Publicity campaign

Other

 

If I select comunication, another dropdown appears with more options. I need to do the same with Publicity Campaign. Both options save data to the same field.

 

I'm using the following formula to do that:

 

If(Dropdown3.Selected.Name="Comunication", true, false)

 

And I need the same formula on the same field to work with both "Comunication" and "Publicity Campaign". How can I do that?

 

Thanks.

Categories:
I have the same question (0)
  • Verified answer
    CarlosFigueira Profile Picture
    Microsoft Employee on at

    You can use the Or operator for that:

    If(Dropdown3.Selected.Name = "Comunication" Or Dropdown.Selected.Name = "Publicity campaign", true, false)

    Hope this helps!

  • Verified answer
    FishinKmac Profile Picture
    75 on at

     field, then you can use

     

    If(Dropdown3.Selected.Name = "Comunication" || Dropdown.Selected.Name = "Publicity campaign", true, false)

     

    If you need to do this for any multi-select fields, you can use this formula:

     

    If(CountIf(DataCardValue.SelectedItems ,Value="Communication")>0 ,true,false)

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    So it was that easy, huh... thanks a million! It works perfectly fine.

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard