Choose where you’d like to start

Remove element from a list

Table of Contents

Overview

The remove element deluge task removes a specified element from a list.

Syntax

<list_variable>.removeElement(<expression>);
ParameterDescription
<list_variable>

List variable from which an element will be removed.

Data type is List.

<expression>

Element which will be removed from the list.

You can specify a variable containing the element as a value, or you can specify an expression that evaluates to the required element.

If the element is not found, there is no error encountered.

If the list is a data type specific list, the data type of the specified value must match the data type of the list. If not, a runtime error will be encountered.

All data types are applicable.

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

The following snippet removes "Tuesday" from the "days" list.

days={"Monday", "Tuesday", "Wednesday", "Thursday", "Friday"};
days.removeElement("Tuesday");

Get Started Now

Execute