web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Use an icon in a galle...
Power Apps
Unanswered

Use an icon in a gallery to deselect an item in the combo box

(0) ShareShare
ReportReport
Posted on by

Hi all,

 

I currently have the following situation:

In PowerApps I have a combo box, this is filled with a collection. The collection has two columns, Amount and Description. If you select an item it is based on the description. This is stored in a collection. The items that are selected in the combo box appear in a gallery. It is displayed with an input field (Amount), text field (Description) and a trash icon. If I select the trash icon I want to deselect the item in the combobox. So with the trash icon I need to change the SelectedItems from the combobox.

 

Can you help out?

Categories:
  • Ami K Profile Picture
    15,689 Super User 2024 Season 1 on at

    @JustADeveloper - 

     

    If I assume you have the following set up:

    1. You have the following on the OnChange property of the ComboBox:

    ClearCollect(colMySelectedItems, Self.SelectedItems)

     

    2. You have the following on the DefaultSelectedItems property:

     

    colMySelectedItems

     

    Then on the OnSelect property of the Trash Icon control embedded into your Gallery control, use:

     

    Remove(colMySelectedItems, ThisItem); 
    Reset('Your Combobox')

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 232 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 202 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard