field.phone-number

Creates a field for entering a phone number.

Allows entering numbers, spaces, and the +, ( ), - characters. Only numbers and the + character at the beginning will remain in the data. For example, if you enter +7 (012) 345-67-89, the data gets the +70123456789 value.

View example in the sandbox.

Component properties

Name

Type

Description

type*

"field.phone-number"

Set component type

data*

writable

Data with values that will be processed or changed.

label

string

Label above the component.

hint

string

Hint text.

placeholder

string

A semi-transparent label that is shown in an empty field.

validation

condition

Validation based on condition.