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 / How do I populate a te...
Power Apps
Unanswered

How do I populate a text field with the values chosen in a list box?

(0) ShareShare
ReportReport
Posted on by 59

So I am trying to get a formula working a failing whereby I have a populated List box, If I choose multiple items and click the button, It should populate the text box. The list box is populated by a column in a Sharepoint list.

So I am trying the formula 

DataCardValue1.Text = Concat(ListBox2.SelectedItems,ProductArea & ", ");

 

but it is not performing any task 

Categories:
I have the same question (0)
  • BCBuizer Profile Picture
    22,798 Super User 2026 Season 1 on at

    Hi @hasahmad ,

     

    Please remove the semicolon at the end:

     

    Concat(ListBox2.SelectedItems,ProductArea & ", ")

     

    Since the Text property is declarative, this is causing an issue.

  • TheRobRush Profile Picture
    11,128 Moderator on at

    For a listbox populated by a choice column

     

     

    Concat(ListBox1.SelectedItems,Value,", ")

     

     

    For a listbox populated by a non choice column

     

     

    Concat(ListBox1.SelectedItems,ColumnNameBeingReferenced,", ")

     

     

     

    Set up both in an app to test this before sending to make sure there were no current bugs happening, both worked as expected

     

    Just place these as the Text property of a label, and not on a button, and no semicolons

  • TheRobRush Profile Picture
    11,128 Moderator on at

    @BCBuizer we crossed haha, Nice answer 🙂

  • hasahmad Profile Picture
    59 on at

    The reason I have the ; at the end is because the button also is used to close the "popup"

     

    DataCardValue1.Text = Concat(
    ListBox2.SelectedItems,
    ProductArea & ", "
    );
    Set(
    VarShowList,
    false
    );

     

    even when I remove that close function on the button and only have this, the text box is not populating

     

  • TheRobRush Profile Picture
    11,128 Moderator on at

    you cannot set a textboxs text like that on a button you would need to make it

    Set(textBoxVar, Concat(ListBox1.SelectedItems,ColumnNameBeingReferenced,", "))

    then make the textbox value textBoxVar

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 385

#2
Vish WR Profile Picture

Vish WR 367

#3
timl Profile Picture

timl 340 Super User 2026 Season 1

Last 30 days Overall leaderboard