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 / Listbox set value of S...
Power Apps
Unanswered

Listbox set value of SelectedItem

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Is it posible to set them selected items of a list box using another object doing something like the following

button1: OnSelect = ListBox1.SelectedItems.Value = "1"

 

2017-10-30_23-02-53.jpg

Categories:
  • rc Profile Picture
    Microsoft Employee on at

    The way to do this in PowerApps is to have the button OnSelect set a variable. Then have the Default property of the listbox = that variable.

     

    Button.OnSelect = Set( YourNewVariable, YourNewValue )

    Listbox.Default = YourNewVariable

     

    A brief gif of this in action attached. You can learn more about variables here: https://powerapps.microsoft.com/en-us/tutorials/working-with-variables/

     

    Good luck!

    UpdateListbox.gif.gif
  • v-micsh-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous,

     

    ListBox1.Selectitems is an output property of ListBox control, the value of this property will not be updated through another Object, once it is changed by the user, it will just hold the user selection (user Input).

    ListBox could be reset to its default value, which is configured through the Default property of the ListBox control.

    For more information about the ListBox control and its property, please check:

    ListBox control in PowerApps

     

    Regards,

    Michael

  • MK1 Profile Picture
    169 on at

    LISTBOX DEFAULT SELECT ALL

     

    ComboBox with multi select

    Items: Distinct(Filter(Product,Name.Id=Dropdown.Selected.ID),Title)

    ListBox

    Items: Distinct(Filter(product,Title in Listbox.SelectedItems),Description)

    Default:LookUp(Product,Title in listbox.SelectedItems.Result,Description)

    textInput: Concat(ADDescription.SelectedItems,Result&",")

     

    while using this scenario, Its working when there is only one item in the combobox and if we select it the description is selected default and added to the textbox

    But, when we select multiple items in the combobox, on description it shows both descriptions are selected but its only populating one description on top of the list.

    Can you help me with were i'm messing with the formula.

    Thanks in advance.

    MK

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 339 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 289

#3
Mohsin Ali Profile Picture

Mohsin Ali 228

Last 30 days Overall leaderboard