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

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
Super User
Super User

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
Super User
Super User

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

Re: pop up message when delete an Item

Thank you @PowerAddict for your usual support

 

Osmand. 

Super User
Super User

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
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (4,426)