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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Check Items in a Galle...
Power Apps
Unanswered

Check Items in a Gallery and Output into a Textbox

(0) ShareShare
ReportReport
Posted on by 60

I have check-boxes next to each item in a gallery. When those boxes are selected, I would like the items to output into a text box below. For example, if the following are selected:

stellarwheels_0-1668025695686.png

Then I want a box below to automatically generate a list this:

stellarwheels_1-1668026016195.png

Thank you for any help!

 

Categories:
I have the same question (0)
  • cmitchener Profile Picture
    on at

    You would want to set the textbox's Default property to be a variable. There are a few steps to do first though:

     

     

    Set the checkbox's OnCheck property to collect the selected item, like so:

     

    //NOTE: I am using colItems as an example, but you can name this collection whatever you want

    Collect(colItems, ThisItem)

     

     

    You would then want to set the OnUncheck property to remove the unchecked item from the collection:

     

    Remove(colItems, ThisItem)

     

     

     

    Finally, you want to set the textbox's Default to translate that collection into a text value separating the values by a comma and a space, while also not adding the comma and space on the end if there isn't another record:

     

    With(
        {concatResult: Concat(colItems, ThisRecord.Value & ", ")},
        Left(concatResult, Len(concatResult)-2)
    )

     

     

     

    This should get you the desired outcome.

  • stellarwheels Profile Picture
    60 on at

    Thank you for your help! I'm having trouble getting it to work. It doesn't like "Value," and I'm not sure why. I also don't know what this refers to. I'm very new to this.  Can you help me understand?

  • WarrenBelz Profile Picture
    153,079 Most Valuable Professional on at

    Hi @stellarwheels ,'

    What is the Text of your Checkboxes ? It will be ThisItem.???? (see below) - The Default of your Text Box just needs to be

    Concat(
     Filter(
     YourGalleryName.AllItems,
     YourCheckboxName.Value
     ),
     ????, 
     ", "
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard