Available since v3.3.0
Validate any block or text entered by the user
Steps**:**
To validate you need to create an action called validate
in the script, for example:
It accepts the following validation settings:
{
"type": "phone",
"constant": "registration:first_name",
"pattern": "/\\\\w+/ig"
}
type
- one of the built-in checks (more on this later)constant
- the name of the block text in that is need to be checkedpattern
- regular expressionOptional field if pattern is provided.
phone
- checks the phone in the format + [any numbers]