cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Waegemma
Helper V
Helper V

Add Checkbox to a gallery (items = SP DocumentLibrary - checkbox should add checked images to an email)

Hi there,

 

Is there a way to add a checkbox  (not linked to a column/field) to a gallery (based on a SP Document Library) so you can collect all checked items into say a collection?

 

Context: app containing workorders from a list, connected images are in a separate library (because adding attachments in the field proved to be problem-prone, whereas uploading images to a library was not), boss needs to be able to automatically generate mail based on selection of workorders, and choose in a gallery which images are sent along. The mail is generated as a concat/concatenate in a RichTextEditor. 

1 ACCEPTED SOLUTION

Accepted Solutions
Drrickryp
Super User
Super User

@Waegemma 

Add a checkbox to the gallery and set the OnCheck property to Collect(collist,ThisItem) and set the OnUncheck property to Remove(collist,ThisItem).  Put a datatable on the screen and set its Items property to collist to see which items have been selected in the gallery.!1.jpg

View solution in original post

2 REPLIES 2
Drrickryp
Super User
Super User

@Waegemma 

Add a checkbox to the gallery and set the OnCheck property to Collect(collist,ThisItem) and set the OnUncheck property to Remove(collist,ThisItem).  Put a datatable on the screen and set its Items property to collist to see which items have been selected in the gallery.!1.jpg

Waegemma
Helper V
Helper V

Thank you @Drrickryp

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (1,851)