Choose where you’d like to start

Cancel Delete

Table of Contents

Note: This task is applicable only to Zoho Creator.

Overview

The "cancel delete" deluge task prevents data from being removed from the database when users try to delete records. An error message will be displayed to the user, which can be customized by using the alert task before "cancel delete".

This task is generally used in conditional statements, when a user must not be able to delete a record unless a specified condition is met. 

Note: When the "cancel delete" task is triggered, all other deluge tasks except "send mail" task and API calls written in that "On Validate" section will be rolled back and won't get executed.

Syntax

cancel delete;

This task can be used in the following events

When a record is Created
On LoadNo
On ValidateNo
On SuccessNo
On User inputNo
Subform on add rowNo
Subform on delete rowNo
When a record is Created or Edited
On LoadNo
On ValidateNo
On SuccessNo
On User inputNo
Subform on add rowNo
Subform on delete rowNo
When a record is Edited
On LoadNo
On ValidateNo
On SuccessNo
On User inputNo
Subform on add rowNo
Subform on delete rowNo
When a record is Deleted
On ValidateYes
On SuccessNo
Other workflow events
On a scheduled dateNo
During approval processNo
During payment processNo
In a Custom FunctionNo
In an Action item in reportNo

Example

The following script disables the record deletion if the First Name field value is not specified

if ( Name.first_name != "Null" )
{
cancel delete;
}

Get Started Now

Execute