Creator Help

Alert

Table of Contents

 Description

The Deluge task alert is meant to alert a user by means of displaying a meaningful message. It can be used in all workflow blocks except the OnSuccess blocks. The alert message is displayed in a pop-up window.

Note: When placed in an OnValidate block, the alert task’s message is displayed only when a cancel submit follows it. In the absence of cancel submit, Zoho Creator bypasses executing that alert task.

 Syntax

alert <value>;

where <value> is the alert message to be displayed.

 Examples

  1. Imagine a form containing a field ​Age and that form submission is to be prevented when Age is not between 20 and 100.

    Age
          (
          type = number
          )
    on validate
          {
          if (input.Age < 20) && (input.Age >100)
                {
                alert "Age should be between 20 and 100";
                cancel submit;
                }
          }

  2. The code snippet given below fetches the data corresponding to the particular position applied by the applicant and checks if the Status for that position is currently Closed and displays an error message to the user. You can access all the details related to that position by accessing the variable “opening”.

    on validate
          {
          opening = New_Opening [Position_Name == input.Applied_For];
          if (opening.Status == “Closed”)
                {
                alert "The job profile " + input.Applied_For + " for which you have applied is not currently open";
                cancel submit;
                }
          }

Share this post : FacebookTwitter

Still can't find what you're looking for?

Write to us: support@zohocreator.com