Hi Guys,
I'm trying to use the On change property for my combo box where a user can select multiple selections.
On change I'm updating my collection using the Patch method. My only issue is every time you select an item it gets out of the combo box and then you need to make the second selection by reopening the combo box.
I know this has to do with the on change patch formula. Unfortunately I don't know if there is a work around for this issue.
I want the patch to only run after the user has made all the required selection. Eg. On combo box exit.
Any help is greatly appreciated.
Thanks
Hey, Did you find the solution to this problem?
I am having the same problem and the current solution on here is not suitable or correct
Thanks
Hi @christian12 ,
Please try set the combo box's OnChang property to:
Set(Var1,Self.SelectedItems); Patch(XXXX)
Best Regards,
Wearsky
Thank you.
Unfortunately it doesn't work.
My Combobox items are set in the one collection column. Example
Split(ThisItem.Controls,"|") which will give me say combobox selections of (Yellow, black, blue etc).
When a selection is selected I patch it back to a column within the collection. If a user selects Yellow and blue it will patch to the collection as Yello|blue.
Trying the method you suggested only allows a single selection
Hi @christian12 ,
Please try:
1\Set the combo box's OnChang property to:
Set(Var1,Self.Selected); Patch(XXXX)
2\Set the combo box's DefaultselectedItems property to:
Var1
Best Regards,
Wearsky