Tel

A phone number input field

The phone field creates a text input with the type tel and a custom phone icon.

Example

fields:
  phone:
    label: Phone
    type: tel

In your templates

You can create tel links in your templates like this:

<?= html::a("tel:" . $page->phone(), $page->phone()) ?>

Result

Screenshot Tel