div-input-validator-regex

Regex validator.

Parameters

Parameters Description
label_id

string

Required parameter.

ID of the text element containing the error message. The message will also be used for providing access.

Available platforms: Android, iOS, web.

pattern

string

Required parameter.

A regular expression (pattern) that the field value must match.

Available platforms: Android, iOS, web.

type

string

Required parameter.

The value must always be regex.

Available platforms: Android, iOS, web.

variable

string

Required parameter.

The name of the variable that stores the calculation results.

Available platforms: Android, iOS, web.

allow_empty

bool_int

Determines whether the empty field value is valid.

Default value: false.

Available platforms: Android, iOS, web.

JSON
{
  type*: "regex",
  allow_empty: "bool_int",
  label_id*: "string",
  pattern*: "string",
  variable*: "string"
}