--- title: "isElValid (Validating element)" slug: "calc-function-is-el-valid" updated: 2026-05-12T13:35:54Z published: 2026-05-12T13:35:54Z canonical: "docs.lobstersoftware.com/calc-function-is-el-valid" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # isElValid (Validating element) The $isElValid function is used to validate an element or its duplicates. If all elements are valid, true is returned, otherwise false. The ID of the element is passed as a parameter. Optionally, all duplicates can be validated (see parameter description of *duplicatesToo*). > [!NOTE] > The $isElValid function is used to validate an element or its duplicates. If all elements are valid, true is returned, otherwise false. The ID of the element is passed as a parameter. > > Optionally, all duplicates can also be validated (see parameter description of *duplicatesToo*). > > > [!TIP] > > Tooltip > > > > Syntax: *$isElValid(elementId[,duplicatesToo[,validationResultVar]])* > > > > | Parameter | Description | > > | --- | --- | > > | `elementId` | The ID of the required form element. | > > | `duplicatesToo` `(Standard: false)` | An optional parameter that specifies whether all duplicates of the specified element should also be validated. For example, duplicates of an element are instances in a [Repeatable element](/v1/docs/en/fre-duplicate-element-container-vo) container. If $isElValid is executed in a calculation that is inside a repeatable element, this parameter can be omitted or set to *false* to validate an element inside the same repeating hierarchy. | > > | `validationResultVar` `(optional)` | Can optionally define a form variable in which the validation results of invalid elements are written as a list of texts. See the example below. | > > > > Returns *true* if all queried elements are valid, otherwise *false.* > > > > Example: $isElValid(5,$true) – Returns true if all repeated instances of element 5 are valid. ## Syntax *$isElValid(elementId[,duplicatesToo[,validationResultVar]])* ## Parameter | Name | Description | | --- | --- | | elementId | The ID of the required form element. | | duplicatesToo (default: *false*) | An optional parameter that specifies whether all duplicates of the specified element should also be validated. For example, duplicates of an element are instances in a [Repeatable element](/v1/docs/en/fre-duplicate-element-container-vo) container. If $isElValid is executed in a calculation that is inside a repeatable element, this parameter can be omitted or set to *false* to validate an element inside the same repeating hierarchy. | | validationResultVar (optional) | Can optionally define a form variable in which the validation results of invalid elements are written as a list of texts. See the example below. | ## Return value Returns *true* if all queried elements are valid, otherwise *false*. ## Example A short form with a [Repeatable element](/v1/docs/en/fre-duplicate-element-container-vo) container and a validation button demonstrates how the $isElValid function can be used. ![images/download/attachments/62863689/image2020-4-3_9-26-49-version-1-modificationdate-1610618072495-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2020-4-3_9-26-49-version-1-modificationdate-1610618072495-api-v2.png) The "Repeatable element" container contains a text field with element ID 6, which is a required field (so it is invalid as long as it is empty). The **Check** button executes a [Calculate](/v1/docs/en/frebehav-calculate) behavior when clicked, which validates all duplicates of the text field (ID 6) in the check expression **(1)**. As an action, either an **Alert title** and the message "Valid" or an **Alert title** "Invalid" and the validation messages **(1)** (separated by line breaks (\n) via $concatWS function) is displayed as a message. Explanation: The validation messages were written to the variable "validationResult" in expression **(1)** and can therefore be read out again with the calculation function $var in **(2)**. **Result of the configuration** | Launched form | Click on "Check" | | --- | --- | | ![images/download/attachments/62863689/image2020-4-3_9-20-23-version-1-modificationdate-1610618072536-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2020-4-3_9-20-23-version-1-modificationdate-1610618072536-api-v2.png) | ![images/download/attachments/62863689/03-04-_2020_09-20-47-version-1-modificationdate-1610618072529-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/03-04-_2020_09-20-47-version-1-modificationdate-1610618072529-api-v2.png) | | ![images/download/attachments/62863689/image2020-4-3_9-23-42-version-1-modificationdate-1610618072511-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2020-4-3_9-23-42-version-1-modificationdate-1610618072511-api-v2.png) | ![images/download/attachments/62863689/image2020-3-30_11-13-1-version-1-modificationdate-1610618072543-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2020-3-30_11-13-1-version-1-modificationdate-1610618072543-api-v2.png) |