cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Toggle and Dropdown Conditions

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

 

1 ACCEPTED SOLUTION

Accepted Solutions
JR-BejeweledOne
Super User
Super User

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

 

)



If you like this post, give it a Thumbs up. If it answered your question, Mark it as a Solution to enable other users find it.

View solution in original post

3 REPLIES 3
JR-BejeweledOne
Super User
Super User

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

 

)



If you like this post, give it a Thumbs up. If it answered your question, Mark it as a Solution to enable other users find it.
Anonymous
Not applicable

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
Super User
Super User

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.  



If you like this post, give it a Thumbs up. If it answered your question, Mark it as a Solution to enable other users find it.

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,366)