Info
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:
- When used in On load, On validate, On success, On user input, Subform on add row, and Subform on delete row events of the form workflow, the output can be viewed by clicking the "View Log Details" link that appears in the form upon execution.
- On successful record deletion, the output is displayed in a pop-up when a record is deleted from a report.
- When used in a custom function and executed directly from the editor, the output is displayed in a pop-up upon execution.
- 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
| Parameter | Description |
|---|---|
| <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 Load | Yes | |
| On Validate | Yes | |
| On Success | Yes | |
| On User input | Yes | |
| Subform on add row | Yes | |
| Subform on delete row | Yes | |
| When a record is Created or Edited | ||
| On Load | Yes | |
| On Validate | Yes | |
| On Success | Yes | |
| On User input | Yes | |
| Subform on add row | Yes | |
| Subform on delete row | Yes | |
| When a record is Edited | ||
| On Load | Yes | |
| On Validate | Yes | |
| On Success | Yes | |
| On User input | Yes | |
| Subform on add row | Yes | |
| Subform on delete row | Yes | |
| When a record is Deleted | ||
| On Validate | Yes | |
| On Success | Yes | |
| Other workflow events | ||
| On a scheduled date | Yes | |
| During approval process | Yes | |
| During payment process | Yes | |
| In a Custom Function | Yes | |
| In an Action item in report | Yes | |
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;