Cancel Delete
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 Load | No | |
On Validate | No | |
On Success | No | |
On User input | No | |
Subform on add row | No | |
Subform on delete row | No | |
When a record is Created or Edited | ||
On Load | No | |
On Validate | No | |
On Success | No | |
On User input | No | |
Subform on add row | No | |
Subform on delete row | No | |
When a record is Edited | ||
On Load | No | |
On Validate | No | |
On Success | No | |
On User input | No | |
Subform on add row | No | |
Subform on delete row | No | |
When a record is Deleted | ||
On Validate | Yes | |
On Success | No | |
Other workflow events | ||
On a scheduled date | No | |
During approval process | No | |
During payment process | No | |
In a Custom Function | No | |
In an Action item in report | No |
Example
The following script disables the record deletion if the First Name field value is not specified
if ( Name.first_name != "Null" )
{
cancel delete;
}
{
cancel delete;
}