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 / Making a field visible...
Power Apps
Answered

Making a field visible when certain choices are selected in another field

(0) ShareShare
ReportReport
Posted on by 14

Hi I have created a number of hidden fields using If statement: 

Goes like this:  visible 

If(DataCardValue35.Selected.Value="Other”,true,false)

which works beautiful, however I have a field which has a number of selections required, such as Other, EMS)  I have tried different ways to try and get both these choices in, however they do not work.  I dont get errors, but when selecting it does not show the hidden box when selected. Here are some examples of what i have done. 

If(DataCardValue35.Selected.Value="Other",true,false) && (DataCardValue35.Selected.Value="SWMS")

also done 

If(DataCardValue39.Selected.Value="Other; EMS",true,false)

I know what I have tried is not quite right, however I not sure if it best to use the If statement or if I should use a variable on the other field.  Would anyone be able to point me in the right direction as it would be much appreciated. I have only just started using Powerapps, so fairly new. 

 

Categories:
I have the same question (0)
  • CathMitcherson Profile Picture
    14 on at

    Sorry everyone I think I have found a solution.  This is what I ended up doing on the field

     

    visible

    If(DataCardValue39.Selected.Value = "Other", true,false || DataCardValue39.Selected.Value = "EMS", true, false)

     

    It works.  If there is a better way let me know.  but it works.  

     

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

    @CathMitcherson 

    Yes, you needed the OR operator for what you were trying to do. 

    You can shorten your formula to this to make it a little easier to deal with:

    (DataCardValue39.Selected.Value = "Other" || DataCardValue39.Selected.Value = "EMS")

    This will be true if either one of those values are selected and false if not.  You don't need to specify true or false when you write your formula this way.

     

    I hope that adds a little extra help for you.

  • CathMitcherson Profile Picture
    14 on at

    Thanks heaps @RandyHayes will give this a try. 

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
WarrenBelz Profile Picture

WarrenBelz 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard