Hi,
I am new to Powerapps and have taken over the administration of one of our companies' programs. I am trying to implement a way of removing certain items from a document library ('PI Supporting Images') by using a checkbox control within the gallery that displays these items ('D2SupportImagesGallery'). The document library contains images relating to a certain product issue, which are uploaded by the user within the app. The ID term relates to the ID of the currently selected product issue (in this case the ID is 485).
Currently there is no way to remove images from this library from the app. I have found a way of deleting the most recent picture that has been uploaded by using the following code within the 'OnSelect' section of the button (the trash icon):
Remove('PI Supporting Images',LookUp('PI Supporting Images',ID=D2SupportImagesGallery.Selected.ID))
I want to improve this functionality by allowing the user to select which specific images they want to remove using a check box control ('D2DeleteImageCheckbox'). If the check-box is ticked, I want those items to be deleted when the delete button is pressed. However, I cannot figure out how to implement this feature within the code in the "image deletion" button. Do I need any code within the "OnChecked" items of the checkboxes? In pseudocode, I just want something like "if checkbox is ticked, remove these items from the gallery" as it is currently done. I feel like this should be a very simple alteration to the current code, yet I cannot figure a solution out (I have found related threads to this issue including this one but have had no luck with it so far).
Many thanks for any help.
