Info

Table of Contents

Overview

The Info Deluge task is a debugging statement used to display the value of an expression during script execution. It helps developers inspect variable values, verify logic, and understand the flow of execution while building and testing the script.

Note: (Applicable only to Zoho Creator)

  • In Zoho Creator, the info statement output is visible only to Super Admin, Admins, and Developers, and it appears in different places depending on where it is used. For example:
  • The collective response from the info and alert statements in a function can be up to 500 KB. When this is limit is exceeded, the response will be truncated and appended with the following note:
    The info message has been truncated because its size exceeded 500 KB.
  • This task will be listed under Debug in all events except "Schedules" and "Approvals". In these two events it will be listed under Miscellaneous.
  • The alert statement differs from the info statement in the following ways:
    • The alert statement can be used only in select events.
    • A user need not be an admin to be able to view the output of the alert statement.
    • The alert statement will display the specified content without requiring any manual action from the user.
    • The output of the alert task will be displayed in a pop-up box.
  • The inline alert task differs from the info statement in the following ways:
    • The inline alert statement can be used only in the "On Validate" event.
    • A user need not be an admin to be able to view the output of the alert statement.
    • The output of the inline alert task will be displayed below the specified field.

Syntax

info <expression>;
ParameterDescription
<expression>

The value to be displayed.

You can directly specify a value, or you can also specify an expression, i.e. a combination of values, constants, variables, operators, functions and so on, which evaluates to a value.

In Zoho Creator, this task can be used in the following events

When a record is Created
On LoadYes
On ValidateYes
On SuccessYes
On User inputYes
Subform on add rowYes
Subform on delete rowYes
When a record is Created or Edited
On LoadYes
On ValidateYes
On SuccessYes
On User inputYes
Subform on add rowYes
Subform on delete rowYes
When a record is Edited
On LoadYes
On ValidateYes
On SuccessYes
On User inputYes
Subform on add rowYes
Subform on delete rowYes
When a record is Deleted
On ValidateYes 
On SuccessYes
Other workflow events
On a scheduled dateYes
During approval processYes
During payment processYes
In a Custom FunctionYes
In an Action item in reportYes

Examples

Example 1

The following example displays the text - Hello World and number - 10:

info "Hello World"; //Returns Hello World
info 1; //Returns 1

 

Example 2 (Applicable only to Zoho Creator)

In the following example, Employee_resume is a file upload field type and the snippet displays the File Upload field value as stored in the database, which is in the format <file-id>_<file-name>.<file-type>

var = Fields[Employee_Name == "John"];
info var.Employee_resume;