Displays a composite field to enter a phone number.

type

(string)  Must be equals to tel.

label

(string)  The label to display next to the field.

help

(string)  An optional text to describe the purpose of the field.

required

(bool)  Whether the field is mandatory or optional.

value

(string)  The last saved phone number.

id

(string)  An optional field ID.

class

(string)  An optional field class suffix.

hidden

(bool)  True to avoid displaying the label of the field.

[
    'phone' => [
        'type' => 'tel',
        'label' => 'Phone Number',
        'value' => '+1 555 1234-567',
    ]
]

Changelog

Version Description
1.7.3 Introduced.
Last Update: 2022-03-09 14:39
Helpful?