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 Apps
Answered

Listbox save data

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi. I am new to using PowerApps. But I am trying to make a app where in listbox you can choose some possibilities ( for example: Type of visit : Busines, Project etc) and I want to store this data. But I dont know how. In microsoft lists I cannot create ListBox so I dont know how to store it or where. Can anyone help me?

Have a nice day.

Categories:
I have the same question (0)
  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous,

     

    Could you please share a bit more about the List Box control within your app?

    Where do you want to save your data?

     

    I assume that you want to save the selected items within the List box control into a Collection, I have made a test, please take a try with the following workaround:3.JPG

     

     

    Set the OnSelect property of the "SaveToCollection" button to following formula:

    Clear(SavedData);
    ForAll(ListBox1.SelectedItems,Collect(SavedData,MemberEmail))

    Note: The ListBox1 represents the List Box control within the my screen.

     

    On your side, you should type following formula:

    Clear(SavedData);
    ForAll(ListBox1.SelectedItems,Collect(SavedData,ColumnName))

    Note: The ColumnName represents the column (Column Value) that you want to save, On your side, it may be "Type of visit".

     

    In addition, you could type the above formula within the OnChange property of the List Box control within your app. Set the OnChange property of the List Box control to following formula:

    Clear(SavedData);
    ForAll(ListBox1.SelectedItems,Collect(SavedData,ColumnName))

    The GIF image as below:Test1.gif

     

     

     

    More details about the ForAll function in PowerApps, please check the following article:

    ForAll function

     

     

    Best regards,

    Kris

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you very much 🙂

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 834

#2
Valantis Profile Picture

Valantis 533

#3
Haque Profile Picture

Haque 410

Last 30 days Overall leaderboard