Choose where you’d like to start

"old" keyword

Note: This keyword is applicable only for Zoho Creator.

Overview

The old keyword fetches the previous value of the specified field when you edit and resubmit an existing record of a form.

Note: This keyword can be used only in the "On Validate" block of a workflow when a record is edited.

Syntax

<variable> = old.<field_link_name>;
ParamDescription
<variable>

To store the fetched old value

<field_link_name>

Link name of the form field whose old value needs to be retrieved

 
When a record is Created
On LoadNo
On ValidateNo
On SuccessNo
On User inputNo
Subform on add rowNo
Subform on delete rowNo
When a record is Created or Edited
On LoadNo
On ValidateNo
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
On UpdateNo
Subform on add rowNo
Subform on delete rowNo
When a record is Deleted
On ValidateNo
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 1

The following example fetches the value stored in the field - plan before the record is edited:

 previous_plan = old.plan;

Example 2

The following example checks if the value of the field - plan has been changed when the record is edited:

 if(old.plan != input.plan)
 {
 info "Plan has been changed";
 }

Related Links

Get Started Now

Execute