Select | Deselect
Note:
- This task is applicable only to Zoho Creator.
Overview
The Select deluge task selects a specified choice in a single-select, multi-select or a lookup field.
The Deselect deluge task deselects a specified choice(previously selected) in a single-select, multi-select or a lookup field.
Note:
- If a choice is selected using the assignment operator '=', and another choice is selected using the select task, the assignment operator will overwrite the select task.
Syntax
To select a choice
<field_link_name>.select(<expression>);
To deselect a selected choice
<field_link_name>.deselect(<expression>);
Parameter | Description |
---|---|
<field_link_name> | Link name of the field in which choices need to be selected or deselected. Only the following field types can be specified:
|
<expression> | Choice(s) to be selected or deselected. Important points to remember for this param:
|
This task can be used in the following events
When a record is Created | ||
On Load | Yes | |
On Validate | No | |
On Success | No | |
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 | No | |
On Success | No | |
On User input | Yes | |
Subform on add row | Yes | |
Subform on delete row | Yes | |
When a record is Edited | ||
On Load | Yes | |
On Validate | No | |
On Success | No | |
On User input | Yes | |
Subform on add row | Yes | |
Subform on delete row | Yes | |
When a record is Deleted | ||
On Validate | No | |
On Success | No | |
Other workflow events | ||
On a scheduled date | No | |
During approval process | No | |
During payment process | No | |
In a Custom Function | No | |
In an Action item in report | No |
Example
In the following example, if no color has been selected from the options in "Color selection" field, the option "White" gets selected automatically.
if(Color_selection ==null)
{
Color_selection.select("White");
}
{
Color_selection.select("White");
}