cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AParker
Frequent Visitor

OnSelect property when filtering a gallery down to one option

Wondering if anyone has a solution to this -

 

I have a gallery that I'm filtering based on a couple dropdowns that has some OnSelect properties - specifically, it updates a few collections and sets a couple variables. Due to my use case, it's frequent that the user will filter the gallery down to a single option.

 

When it's filtered to one option, everything that refers back to the gallery (Gallery1.Selected.Name, etc.) fills fine, but obviously the OnSelect actions don't go through until the user clicks on the item. It's not the end of the world but, also, not the most intuitive UI.

 

Is there any workaround for this to allow the user to just start work on the item without actually clicking it?

1 ACCEPTED SOLUTION

Accepted Solutions
Drrickryp
Super User
Super User

Hi @AParker 

There is no Action associated with a gallery except OnSelect.  However, you could set the OnChange property of your dropdowns 

If(
   CountRows(Gallery1.AllItems) = 1, 
    EditForm(Form1)
)

The command will not be executed unless the condition is met. 

View solution in original post

2 REPLIES 2
Drrickryp
Super User
Super User

Hi @AParker 

There is no Action associated with a gallery except OnSelect.  However, you could set the OnChange property of your dropdowns 

If(
   CountRows(Gallery1.AllItems) = 1, 
    EditForm(Form1)
)

The command will not be executed unless the condition is met. 

View solution in original post

This is a clever workaround! Thanks very much.

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

secondImage

Power Apps Community Call

Please join us on Wednesday, October 20th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (2,314)