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 / Collect multiple items...
Power Apps
Answered

Collect multiple items from another collection

(0) ShareShare
ReportReport
Posted on by 6

Hi: New to Power Apps, though I'm expert in SharePoint (sites, lists, etc.) & pretty good with Power Automate. I'm self-taught, though; the "no code" part of this was meant for me but I get stuck on the "low code" part so I'm hoping to find help here. I looked at/tried some of the suggested threads but they didn't seem to solve it. I was able to solve another issue here, tho, so I'm hopeful!

 

Here's what's up (and it's entirely fake, I'm using it to learn). Terms in italics are "named" fields/functions from the app.

 

Somewhere on this screen, I want something that collects & displays all the checked items in the Name field on the order form for the user to confirm before they hit "submit order".  Ideally, I'd like the next (to be built) confirmation screen to show them all, too, but I may be able to figure that out once I solve this b/c I feel like it's in the same area. 

 

DeiS_0-1680277886431.png

 

The right side is the "order form" (fields tied from elsewhere in the dataverse) and I can make one item display in the "Name" field but in this scenario, they can order multiple items. 

 

The left side is populated with items they'd selected ("compared item") from a gallery on a prior page (connected to a SP list). I thought using that same field would allow them uncheck an item if they decide not to order it, & thus clear it from the CompareList, which Collects whatever they picked from the gallery. It works fine to display/remove selected items on the View Items gallery  but I can't figure out how to then get all those items (aka that Compare List) to repeat in the Name field on the "order form", or at least somewhere on the page. Does there need to be some other "selection" on this screen to populate that order form with? 

 

I'm sure it's some formula/expression but that's the part I'm the worst at, and understand the least, so I've just been trying things I found here/online and kind of guessing... so far nothing. Although it make take me a beat to process it, I appreciate any advice/info anyone might have. Thanks! 

 

Categories:
I have the same question (0)
  • Verified answer
    srApps Profile Picture
    306 on at

    How about something like this:
    For the checkbox properties:

      OnCheck: Collect(colName, ThisItem.FieldName)

      OnUncheck: Remove(colName, LookUp(colName, Value = ThisItem.FieldName))

    For the form's name text input field property:

      Default: Concat(colName, Value, ", ")

     

     Once the form is submitted, clear the collection using Clear(colName).

  • DeiS Profile Picture
    6 on at

    ooh this sounds promising and I can actually understand it! Thank you so much!! 

     

    I tried that last bit but here's what I got: 

     

    DeiS_1-1680364146983.png

    and this is the same thing with the app running. Which is weird b/c I kind of get why I'm just seeing commas but shouldn't there be 4 of them b/c there are 4 items selected? 

    DeiS_0-1680364103154.png

     

    I saved the app, exited it, refreshed  & went back in to retest - 3 items selected, 2 commas. 

    DeiS_2-1680364339939.png

     

    So what am I doing wrong?  I'm not sure I can fully test it til I get this set b/c the next thing is the confirmation screen & pointing the Submit button to the form. 

     

    Thanks again!

     

     

     

  • DeiS Profile Picture
    6 on at

    I got it to work!!!! wooo hooo!!

    I figured out what you meant and now I got the item names to list. b/c it's multiples, I need to put in a line break but that s/b easy to figure out. Thanks again!! 

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 846

#2
Valantis Profile Picture

Valantis 532

#3
Haque Profile Picture

Haque 410

Last 30 days Overall leaderboard