Skip to main content

Notifications

Power Apps - Building Power Apps
Unanswered

Combo Box on change Multiple selections

(0) ShareShare
ReportReport
Posted on by 178

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

  • christian12 Profile Picture
    christian12 178 on at
    Re: Combo Box on change Multiple selections

    @benmashley unfortunately not

  • benmashley Profile Picture
    benmashley 39 on at
    Re: Combo Box on change Multiple selections

    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

  • Re: Combo Box on change Multiple selections

    Hi @christian12 ,

     

    Please try set the combo box's OnChang property to:

    Set(Var1,Self.SelectedItems); Patch(XXXX)

     

    Best Regards,

    Wearsky

  • christian12 Profile Picture
    christian12 178 on at
    Re: Combo Box on change Multiple selections

    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

  • Re: Combo Box on change Multiple selections

    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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,580

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,909

Leaderboard