Info

Info

Table of Contents

Overview

The Info deluge task is a debugging statement which when executed displays the value of an appended expression.

In Zoho Creator, the value can be viewed by clicking on "View Log Details" button at the bottom of the form. Only app admins can see the output of the info statement.

Note: (Applicable only to Zoho Creator)

  • 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.
  • When the info statement is executed in On load, On validate, On success, On user input, Subform on add row, and Subform on delete row events, the output of the info statement can be viewed by clicking on "View Log Details" button at the bottom of the form. When executed as a custom action, the value is displayed without requiring any manual action.
  • 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

Example

Example 1

The following example displays the text - Hello World:

info "Hello World";

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;

Share this post : FacebookTwitter

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

Write to us: support@zohodeluge.com