How to Delete record from a form

peterswa62 15 Oct, 2012
I want to delete a record by selecting it from a form showing a list of records opening up a new form showing all the fields in this one record and instead of saving it on pressing the submit button it deletes it. I've already got this working for updating a record selecting it from a form showing multiple records just need to get the delete equivalent working.

Do you have to put a Custom Code on the On Submit event to delete it as there is no DB Delete operation?
GreyHead 15 Oct, 2012
Hi peterswa62,

If you are building this in ChronoForms then, yes, you need to add code to delete a record*. If you use ChronoConnectivity then I think that there is a built-in delete function.

Bob

* I prefer to set an 'unpublished' flag rather than actually delete records so that any errors can be corrected.
This topic is locked and no more replies can be posted.