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 to pass the conten...
Power Apps
Unanswered

How to pass the content of a gallery with checkbox into a form

(0) ShareShare
ReportReport
Posted on by 117

Hello everybody,

 

I've got a gallery with a checkbox in it. On check, I want to store the name of the item in a form. So if i check multiple items, i want all of the names of the items to be stored in the same data card. I tried putting them all in a collection and get the content from the collection to the form but I didn't really know how to do it.

Does anybody know how to handle this problem?

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

    Hi @katunar ,

     

    Do you want to collect when the CheckBox seletected and then show it in one DataCard?

    You can try the following workaround?I test as next:

    Checkbox1.OnCheck:Collect(test1,ThisItem)

    Checkbox1.OnUncheck:Remove(test1,ThisItem)

    20190425PassContent1.PNG

     

    Then On the Edit Screen, add another DataCard, and then add one Data Table to show the collection.

    DataTable1.Items:test1

    20190425PassContent2.PNG

     

    Hope this could be helpful.

     

    Best Regards.

    Yumia

     

  • katunar Profile Picture
    117 on at

    Hello @v-yuxima-msft,

     

    I somehow managed to do it. As you can see I collect the checked items and also store the recently checked item in a variable and display the variable on the next screen in a data card.

    Do you know another way how to display it just like that? The main problem with this solution is that if you check, uncheck and then again check the same item, it is stored twice in the variable.

    collect.PNG
    show.PNG
  • katunar Profile Picture
    117 on at

    show.PNGcollect.PNG

  • v-yuxima-msft Profile Picture
    Microsoft Employee on at

    Hi @katunar ,

     

    Just as the post , and as you say Check,UnCheck,Check. I can't reproduce the double stored data.

    20190426CheckAndUnCheckAndThenCheck.gif

     

    Best Regards.

    Yumia

     

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 1,045

#2
Valantis Profile Picture

Valantis 675

#3
11manish Profile Picture

11manish 592

Last 30 days Overall leaderboard