cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Post Prodigy
Post Prodigy

pop up message when delete an Item

Hello everyone, 

 

I would like to know how can I achieve my below requirement. 

 

When I click the Delete button, I would like to have an pop up message saying "Are you sure, you want to delete the record?" with "Yes, Delete" and "No".

 

Then If I click the "Yes, Delete" button Item will be deleted, If I click on "No" Item will not delete and stay in the same edit form. 

 

Thank you, 

Osmand

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User II
Super User II

Re: pop up message when delete an Item

Hi @OsmandFernando
Welcome back!

Have a label and 2 buttons, set the visibility of all them based on a variable which is set to true when the user clicks on delete button. Then one of the buttons (Yes) will have your Patch or SubmitForm as the OnSelect and the other one (No), will simply set that the same variable to false so this alert message with 2 buttons will get hidden.

Let me know if this helps.

---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution.

Thanks!
Hardit Bhatia
The Power Addict
https://thepoweraddict.com

View solution in original post

3 REPLIES 3
Highlighted
Super User II
Super User II

Re: pop up message when delete an Item

Hi @OsmandFernando
Welcome back!

Have a label and 2 buttons, set the visibility of all them based on a variable which is set to true when the user clicks on delete button. Then one of the buttons (Yes) will have your Patch or SubmitForm as the OnSelect and the other one (No), will simply set that the same variable to false so this alert message with 2 buttons will get hidden.

Let me know if this helps.

---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution.

Thanks!
Hardit Bhatia
The Power Addict
https://thepoweraddict.com

View solution in original post

Highlighted
Post Prodigy
Post Prodigy

Re: pop up message when delete an Item

Thank you @PowerAddict for your usual support

 

Osmand. 

Highlighted
Super User II
Super User II

Re: pop up message when delete an Item

Anytime my friend! Glad I could help! Good luck with the rest of your app! Feel free to reach out in case of any questions!

Thanks,
Hardit Bhatia
The Power Addict
https://thepoweraddict.com

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors
Users online (5,779)