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:
Solved! Go to Solution.
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,
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,
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,
Sorry for just getting back to you on this. Your suggestion worked. Thank you!!