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

NameTypeDescription
type*"field.phone-number"

Set component type

data*writable

Data with values that will be processed or changed.

labelstring

Label above the component.

hintstring

Hint text.

placeholderstring

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

validationcondition

Validation based on condition.