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
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

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

Top Kudoed Authors
Users online (2,919)