cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
rpitts
Helper II
Helper II

Drodown On Select Requiring Two Clicks

I have a dropdown with OnSelect set to run ClearCollect.  However, it never runs on the first click.  I have to click the same selection again and then I see the expected result.   Any ideas?   Interestingly, I have a gallery which also has the same OnSelect and it works correctly; i.e., triggered by a single click.

 

The name of the Dropdown is called:   DropdownRecent.  

The On Select is:  

ClearCollect(FinalAtom, {Atom: DropdownRecent.Selected.Atom})
1 ACCEPTED SOLUTION

Accepted Solutions
v-xida-msft
Community Support
Community Support

Hi @rpitts ,

Based on the issue that you mentioned, I think this issue is related to OnSelect property of Dropdown control.

 

When you click the Dropdown box without choosing an option, the Dropdown control OnSelect property would also be fired. But the FinalAtom collection would be empty.

 

Please consider set the OnChange property of the Dropdown box to following:

ClearCollect(FinalAtom, {Atom: DropdownRecent.Selected.Atom})

remove the formula typed within the OnSelect property of Dropdown box.

 

As an alternative solution, please consider add a ComboBox control in your app instead of the Dropdown control. Then set the OnChange property of ComboBox to following formula:

ClearCollect(FinalAtom, {Atom: DropdownRecent.Selected.Atom})

 

Please consider take a try with above solution, check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-xida-msft
Community Support
Community Support

Hi @rpitts ,

Based on the issue that you mentioned, I think this issue is related to OnSelect property of Dropdown control.

 

When you click the Dropdown box without choosing an option, the Dropdown control OnSelect property would also be fired. But the FinalAtom collection would be empty.

 

Please consider set the OnChange property of the Dropdown box to following:

ClearCollect(FinalAtom, {Atom: DropdownRecent.Selected.Atom})

remove the formula typed within the OnSelect property of Dropdown box.

 

As an alternative solution, please consider add a ComboBox control in your app instead of the Dropdown control. Then set the OnChange property of ComboBox to following formula:

ClearCollect(FinalAtom, {Atom: DropdownRecent.Selected.Atom})

 

Please consider take a try with above solution, check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks Kris but I am actually choosing an option.  I click the dropdown then choose the option.    That said, I will still give this a try.

Hi @rpitts ,

Yeah, please consider take a try with it, check if the issue is solved on your side.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Sorry for just getting back to you on this.  Your suggestion worked.  Thank you!!

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.

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,440)