Choose where you’d like to start

Select | Deselect

Table of Contents

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>);
ParameterDescription
<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:

  • Radio
  • Drop Down
  • Multi Select
  • Checkbox
  • Lookup (all Display Types are supported)
<expression>

Choice(s) to be selected or deselected.

Important points to remember for this param:

  • You must specify a single value for Radio and Drop Down fields. If you specify a list variable containing multiple values, the last value in the list will be selected.
  • You can specify a new value if "Allow Other Choice" property of the field has been enabled. If this property has not been enabled and a new choice is specified, the choice gets ignored.
  • 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 or a list variable.
  • For a lookup field, the record ID in the lookup form must be specified. If any other value apart from the record ID is specified, an error will encountered during runtime.

This task can be used in the following events

When a record is Created
On LoadYes
On ValidateNo
On SuccessNo
On User inputYes
Subform on add rowYes
Subform on delete rowYes
When a record is Created or Edited
On LoadYes
On ValidateNo
On SuccessNo
On User inputYes
Subform on add rowYes
Subform on delete rowYes
When a record is Edited
On LoadYes
On ValidateNo
On SuccessNo
On User inputYes
Subform on add rowYes
Subform on delete rowYes
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

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");
}

Get Started Now

Execute