Skip to main content
Version: 5.3.0 - 5.3.2

Validation section

The Validation collapsible section in some components' Props tab provides rule-based field validation. Each rule group is listed as a clickable item. Click a rule group to open a popup configuration panel, where you can set its properties.

The following rule groups are available:

Mandatory validation​

Marks the field as required and configures the mandatory indicator and error message.

If a property displays the Variable Binding icon Variable Binding, that means it supports variable binding.

PropertyUI ControlDefaultDescription
MandatoryToggle switchOffWhen enabled, the field is required and submission without a value triggers a validation error.
Error messagei18n setter-Sets the error message displayed when mandatory validation fails. Supports internationalisation.
AsteriskToggle switchOffWhen enabled, displays an asterisk indicator next to the field label.

Max / Min value validation​

Validates that the input value falls within the specified maximum and minimum limits, allowing you to set both upper and lower boundaries for the input field.

If a property displays the Variable Binding icon Variable Binding, that means it supports variable binding.

PropertyUI ControlDefaultDescription
MinNumber input-Sets the minimum acceptable value.
MaxNumber input-Sets the maximum acceptable value.
Error messagei18n setter-Sets the error message displayed when the value is outside the specified range. Supports internationalisation.

Max / Min length validation​

Validates that the length of the input falls within the specified maximum and minimum character count limits. This is commonly used to restrict text input to a certain length, helping maintain data consistency and preventing overly long or short entries.

If a property displays the Variable Binding icon Variable Binding, that means it supports variable binding.

PropertyUI ControlDefaultDescription
Min lengthNumber input-Sets the minimum acceptable character count or array length.
Max lengthNumber input-Sets the maximum acceptable character count or array length.
Error messagei18n setter-Sets the error message displayed when the length is outside the specified range. Supports internationalisation.

Length validation​

Validates that the input has an exact number of characters or elements as specified.

If a property displays the Variable Binding icon Variable Binding, that means it supports variable binding.

PropertyUI ControlDefaultDescription
LengthNumber input-Sets the exact character count or array length required.
Error messagei18n setter-Sets the error message displayed when the length does not match. Supports internationalisation.

Regex validation​

Validates that the input matches a specified pattern, making sure data conforms to a defined format.

If a property displays the Variable Binding icon Variable Binding, that means it supports variable binding.

PropertyUI ControlDefaultDescription
RegexExpression input-Sets the regular expression pattern to validate against. Accepts a JavaScript expression.
Error messagei18n setter-Sets the error message displayed when the input does not match the pattern. Supports internationalisation.

Format validation​

Validates that the input matches a common format such as numbers, email addresses, URLs, and telephone numbers.

If a property displays the Variable Binding icon Variable Binding, that means it supports variable binding.

PropertyUI ControlDefaultDescription
FormatButton group (Number | Email | Url | Tel | Sg tel | Sg nric | Default)-Selects the format to validate against. Selecting Sg tel, Sg nric, or Email automatically applies a corresponding regex pattern.
Error messagei18n setter-Sets the error message displayed when the input does not match the selected format. Supports internationalisation.

Custom validation​

Applies custom validation logic through a bound function.

Click the Bind Function button to open the Event Binding window, where you can select or create a validator function. The function accepts the following signature:

validator(rule, value, callback) {
if (!value) {
callback("Required Value!");
} else {
callback();
}
}

Call callback() with no arguments to pass validation, or with an error string to fail.

Last updated on 20 May 2026