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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Using pop up confirmat...
Power Apps
Unanswered

Using pop up confirmation dialog to delete selected attachment from datacard Attachment control

(0) ShareShare
ReportReport
Posted on by 301

I can't figure it out how to configure confirmation dialog before deleting it from attachment control in form .

Item property of attachment control : colAttach

OnAddFiles :ClearCollect(colAttach,Self.Attachments)
OnRemoveFile : 

Set(varSelectedItem,Self.Attachments);Set(varAction,5);Set(varPop,true
and OnSelect of button 
Remove(colAttach,varSelectedItem);Set(varPop,false)
 
Now the problem I'm facing here is when I click on one of the attachments , the selected item gets removed from the attachment control and the popup dialog opens up and even if I click on , still the selected attachment gets removed 
Categories:
I have the same question (0)
  • RogierE Profile Picture
    879 Moderator on at

    As you're acting on the OnRemove, you're already to late. 🙂 

    Good news though is that this only happens when someone removes an attachment that they just uploaded. When you remove an attachment from an earlier upload, the undo delet button comes standard:

    RogierE_0-1710708852688.png

    If you would also want that behaviour for attachment that the user is uploading in the current session, you could add a sort of auto-save function:

    • Add a timer repeating every few seconds. 
    • Add a SubmitForm to the OnTimerEnd property. 
    • And you might want to show the user that your autosaving with some textlable or something. 

    Please like the reply and/or accept it as the solution if the answer is what you were looking for.

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard