Simple delete button for the current record
How can i create a simple delete button for the current/open record?
Layout element > button > formula
Many thanks, Maarten
You can use the formula
But please be aware: If you only use that formula it will delete the data record imediately.
More information about that function you will find in our User Manual here:
We would suggest to use the waste basket symbol in Ninox in order to delete the current record.
Many thanks, I'm using it for Todo items that don't need an extra confirmation.
The correct formula is
how can I get a confirmation pop up before delete the record?
Refer to the dialog function..
dialog("Delete", "Are you sure you want to delete this record?", ["OK", "Cancel"])
Be advised .. dialog does not work the same in all platforms and will not fire with all triggers.. so best to put it behind a button..
let result := dialog("Warning", "Are you sure?", ["Yes", "No"]);
if result = "Yes"