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 / Toggle and Dropdown Co...
Power Apps
Answered

Toggle and Dropdown Conditions

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have two control; Toggle and Dropdown.

 

Intent is - If User is either Hierarchy 'Park' or 'Employee' Dropdown should default to 'Disabled' and Toggle should default to 'View'. Will the below achieve my goal?

 

Toggle DisplayMode and Visible have the following - 

 

     DisplayMode: If(varProgramHierarchy="National",Edit,View)

                Visible: true

 

 

Dropdown DisplayMode and Visible have the following - (should the below be and If(Or...) condition?)

 

     DisplayMode: If(SnapSiteStatusToggle.Value=false,Disabled) & If(varProgramHierarchy="Park",Disabled) &

                            If(varProgramHierarchy="Employee",Disabled)

                Visible: true

 

Categories:
I have the same question (0)
  • Verified answer
    JR-BejeweledOne Profile Picture
    5,836 Moderator on at

    It should work. but I would rewrite your dropdown DisplayMode formula like this: (Use && instead of &. & Is for concatenation)

     

    DisplayMode:

     

    If(

    SnapSiteStatusToggle.Value=false &&

    varProgramHierarchy="Park" &&

    varProgramHierarchy="Employee",Disabled

     

    )

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Do you have any thoughts about why a Combo Box would ONLY allow one letter to be entered at a time in the 'search' field? My Combo Box use to work just fine, now when I try the search function, when I open the box and type a letter the box immediately closes. When I reopen the box the letter is still there, I enter another letter and it closes again. I have to do this four times jus to get my intended site entered into the search field of the Combo Box.

     

    The Combo Box has the following; it returns the User locations first by default and then shows all other locations.

    Items: LocationCollection

    Default:

    IsSearchable: true

    OnChange: Set(varImage,SnapParkAlphaComboBox.Selected.Park)

    SelecteMultiple: false

    DefaultSelectedItems: Sort(Filter(ParkListCollection, Park = varParkAlpha), Park, Ascending)

     

  • JR-BejeweledOne Profile Picture
    5,836 Moderator on at

    I saw that very thing not too long ago in another post.   let me see if I can find it.

     

    Edit:

     

    It was you!   What I would do is delete the combobox after copying any formulas to a notepad file.    Save your app without changing anything else, then re-add the combobox and name it the same name.   Add your formula's back.

     

    The other thing I would check is to see if you accidentally put a formula in any of the other properties of the combobox that should have gone somewhere else.  

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

#2
11manish Profile Picture

11manish 203 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard