# Delete and Edit not Working Properly

**URL:** <https://www.five.org/t/delete-and-edit-not-working-properly/560>\
**Category:** How do I?\
**Created:** [July 7, 2025, 6:07pm UTC](https://www.five.org/t/delete-and-edit-not-working-properly/560 "2025-07-07T18:07:33Z")\
**Posts on this page:** 1\
**Showing post:** 24

<div class="post-metadata">

**Author:** ![eltonsantos](https://avatars.discourse-cdn.com/v4/letter/e/b19c9b/32.png) [@eltonsantos](https://www.five.org/u/eltonsantos)\
**Post date:** [October 20, 2025, 3:47am UTC](https://www.five.org/t/delete-and-edit-not-working-properly/560/24 "2025-10-20T03:47:48Z")

</div>

Hi Ron,

You can use the method ‘confirm’ from the five’s object to customise the error message and the buttons’ text. This method is a client-side method and allows you to call a callback function to perform further logic based on your button click.

**This is the function signature:**  
five.confirm(message: string, negativeLabel: string, positiveLabel: string, callback: function)

**This is a simple example of how you can use it:**

```
five.confirm('Are you sure you want to delete this record?', 'No', 'Yes', function callback(response){

    five.showMessage('Your response was ' + response)

})

```

Regards,  
Elton S

---

_[View the full topic](https://www.five.org/t/delete-and-edit-not-working-properly/560)._
