cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
RMeena_9
Resolver I
Resolver I

How to add selected checkbox items into a label ?

Hi All,

 

I have a gallery with checkbox items, based on the selected checkboxes I would like to display them in a label. I tried below logic but the collection is not getting created. I am not sure where is the problem??

 

Gallery1:-

OnSelect/OnCheck/Uncheck = ClearCollect(SelectedItems,Filter(Table_1,Gallery1.Selected.Checkbox1));

even I tried to keep this collect OnVisible option for this screen but its not working.

 

Label:-

Concat(SelectedItems,TabList &";",Char(13));

Here "Tablist" is a column name in Table_1 data source.

 

Collection "SelectedItems" is empty even if I check or uncheck in the Gallery1.

Please help where I am wrong 

 

Thanks in advance

1 ACCEPTED SOLUTION

Accepted Solutions
rubin_boer
Super User
Super User

hi @RMeena_9 

 

have a look at this, is this what you looking for?

Concat(Filter(youGallery.AllItems, yourCheckbox.Value),Value & ",")

 

rubin_boer_0-1659720011281.png

 

Hope it helps,

R

hey there if you liked the post give it a thumbs up, and if it solved your question please accept it as a solution.

View solution in original post

2 REPLIES 2
rubin_boer
Super User
Super User

hi @RMeena_9 

 

have a look at this, is this what you looking for?

Concat(Filter(youGallery.AllItems, yourCheckbox.Value),Value & ",")

 

rubin_boer_0-1659720011281.png

 

Hope it helps,

R

hey there if you liked the post give it a thumbs up, and if it solved your question please accept it as a solution.
RMeena_9
Resolver I
Resolver I

Thank you @rubin_boer It worked.

Helpful resources

Announcements
Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Super User 2 - 2022 Congratulations

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Government Carousel

New forum: GCC, GCCH, DoD - Federal App Makers (FAM)

In response to the unique and evolving requirements of the United States public sector, Microsoft has created Power Apps US Government.

Users online (4,781)