Message to pop up when Deleting a record on a form

I’ve created a form to edit a data collection. On this form the ‘Submit’ button has a feature to show a success/failure message. But if I want to send a message when the ‘Delete’ button is pressed I don’t find a similar feature. How do I let the users know that their action of deleting a record has succeeded? I am using a dynamic page on which these two buttons–‘Submit’, and ‘Delete’–are put.

Hi,
Check out this article:

Use the .then promise.
Roi.

Thanks Roi. I was hoping that Wix has a simple solution similar to the ‘Submit’ link. But your suggestion was helpful.