Choose where you’d like to start

Cancel Submit

Table of Contents

Note: This task is applicable only to Zoho Creator.

Overview

The "cancel submit" deluge task prevents data from getting added to the database when users submit the form. An error message "Invalid entries found" will be displayed to the user, which can be customized by using the alert task before "cancel submit".

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

Note:

  • When the "cancel submit" 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.
  • The "cancel submit" task also applies when data is being submitted through the Email Data feature or the Import data feature 

Syntax

cancel submit;

This task can be used in the following events

When a record is Created
On LoadNo
On ValidateYes
On SuccessNo
On User inputNo
Subform on add rowNo
Subform on delete rowNo
When a record is Created or Edited
On LoadNo
On ValidateYes
On SuccessNo
On User inputNo
Subform on add rowNo
Subform on delete rowNo
When a record is Edited
On LoadNo
On ValidateYes
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 form submission if the First Name field value is not specified

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

Get Started Now

Execute