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 Data not savin...
Power Apps
Unanswered

ListBox Data not saving in a list properly

(0) ShareShare
ReportReport
Posted on by 496

Hi Team ,

 

Having an issue in Saving to a List.

 

I'm using below expression Onselect of the submit button 

 

ForAll(
ListBox2.SelectedItems,
Collect(
UserAppList,
{
Title:DataCardValue6.Text,
EmployeeID:DataCardValue6.Text,
App:ListBox2.SelectedText


}
)
);

 

I have selected two applications ,but it will take only the last line description for all the selected items . Pls see the attached screens

 

pls your Advice 

 

AD

 

UserAppList.PNG
OnBoard.png
Categories:
I have the same question (0)
  • MVP-Phipps Profile Picture
    3,521 Super User 2024 Season 1 on at

    What is the data type of the column you storing the list items to? Have you enabled multi-select in this column configuration?

     

    Please Accept as Solution if it solves your question. Or just give it a Thumbs Up if it is helpful as can help others.

    LinkedIn: https://www.linkedin.com/in/charlie-phipps-%F0%9F%91%A8%E2%80%8D%F0%9F%92%BB-91338715b/
    YouTube: https://www.youtube.com/channel/UChmFBGU1YKIU91sNMQ7buGg
    Twitter: https://twitter.com/phipps0218

  • ajithd6368 Profile Picture
    496 on at

    Hi  Phipps,

     

    Datatype of the List column is choice .  

     

    thnks

    AS

  • ajithd6368 Profile Picture
    496 on at

    Hi Phipps ,

     

    I selected two items and it saved the two items in two lines but with the last selected item .

  • MVP-Phipps Profile Picture
    3,521 Super User 2024 Season 1 on at

    I think because of how you are patching that type of field if it is a choice field I would expect:
    { App: {Value: ListBox2.SelectedText} }

  • ajithd6368 Profile Picture
    496 on at

    Hi Phipps,

     

    after the changes as you advised. get another error as in the attached screen

     

    rgds

    AjithListBox.png

     

      

    ListBox.png
  • MVP-Phipps Profile Picture
    3,521 Super User 2024 Season 1 on at

    Can you show me the list settings in the SharePoint?

  • ajithd6368 Profile Picture
    496 on at

    Thanks  Phipps

     

    pls see the attached ..

     

    rgds

    AD

    UserAppList1.PNG
  • MVP-Phipps Profile Picture
    3,521 Super User 2024 Season 1 on at

    Think I found the issue, it should not be selectedText, go .selected.value. This worked for me on my end when I tried it. Do let me know if it doesn't change for you.

  • ajithd6368 Profile Picture
    496 on at

    Thanks phipps ,

     

    getting another error as attached screen 

     

    rgds

    AD

    Expression.png
  • MVP-Phipps Profile Picture
    3,521 Super User 2024 Season 1 on at

    Are you using forms? There is a much easier way to do this that I can show you. Use Forms and the SubmitForm function then handle the update of choice field in the datacard itself.

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 494

#2
WarrenBelz Profile Picture

WarrenBelz 352 Most Valuable Professional

#3
11manish Profile Picture

11manish 323

Last 30 days Overall leaderboard