web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : 3LqybcWykzgeSZuNgcSr5k
Power Apps - Building Power Apps
Answered

How to Delete Images in Gallery Associated with Data in Form

Like (0) ShareShare
ReportReport
Posted on 11 Jul 2022 16:36:44 by 5,132 Super User 2025 Season 2

Below is a Power App screen with a Gallery for images on top and an 'Edit' form on the bottom.

All data and images/attachments are coming from the same SP list.

I can edit the data in the form and submit the changes through the submit/save icon using SubmitForm(EditForm);

The image Gallery is populating data based on the TruckVinNumber in the form as shown here:
Image Gallery 'Items' - LookUp('Schedule Details List', TruckVinNumber = EJDTruckVINNumberDataCardValue.Text).Attachments


As currently configured the images are not impacted by the edit/update action.

I'd like to add the delete/remove (garbage can) icon to the image Gallery so that the user can act on the images/attachments, also.

Will adding the delete/remove icon automatically remove the image fron the SP list independent of the submit/save icon action?

 

Phineas_0-1657556853289.png

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    149,738 Most Valuable Professional on 12 Jul 2022 at 20:45:19
    Re: How to Delete Images in Gallery Associated with Data in Form

    @Phineas ,

    You can have an Edit Form with just the attachment control if necessary, but attachments can only display their name, however you can view them in a gallery (see this blog of mine) which you can put in the same data card with the name and image so they know which attachment/s to delete.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

  • Phineas Profile Picture
    5,132 Super User 2025 Season 2 on 12 Jul 2022 at 15:00:52
    Re: How to Delete Images in Gallery Associated with Data in Form

    Do you have any recommendations as to how such an action (deleting a specific image/attachment) from a SP List item?

    I'm assuming I can use an 'Edit' form rather than a Gallery to display the data and attachment(s)?

    If the above is true will I be able to see all the attachments in the form attachment control?

    If the above is true the attachments will not have recognizable names, so the user won't really know what image/attachment is being deleted/removed where there are more than one image/attachment, as there is no visual distinction if an attachment rather than an image?

  • WarrenBelz Profile Picture
    149,738 Most Valuable Professional on 11 Jul 2022 at 20:55:25
    Re: How to Delete Images in Gallery Associated with Data in Form

    @Phineas ,

    Unfortunately the only way to delete attachments is with an attachment control.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

MS.Ragavendar – Community Spotlight

We are honored to recognize Ragavendar Swaminatha Subramanian as our September…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 733 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 532 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 399 Super User 2025 Season 2

Last 30 days Overall leaderboard
Loading complete