Delete dialog message when Delete Record clicked

How can I force a delete record warning dialog to appear when the Delete Record icon is clicked from the Toolbar Edit menu?

In the properties of the form you want to control the delete button you can attach a script to the onDeleteRecordCmd event.
When using a script it means automaticaly that you control the delete button. So any deleting has to be scripted as well unlike maybe some other enviroments where you have to return true or false to let the app do or don’t do it’s thing.

Here is an example script:

var answer = plugins.dialogs.showDialog('Alert','Do you want to delete this record?','Yes','No')
if(answer == "Yes")
{
	controller.deleteRecord()
}

Ofcourse this means if you want to control the delete button in every form you need to attach this script to every form.

HTH

And, if you change controller.blabla into currentcontroller.blabla you can make this a global method…