1. Fields
  2. Telephone Field

Fields

Telephone Field

The Telephone Field is an input field that allows for entering a single telephone number in the correct international format. It provides a country flag to ensure the correct country code is supplied. It also provides a good level of validation in an attempt to ensure the telephone number entered is valid.

Basic usage

Adds a telephone field to the fields of an action.

loading...

Result

The field will be displayed as a input field as below: Preview of a telephone field

The resultant data will be available in the stubpost.data as:

loading...

This can be substituted with eg. ~~stubpost.data.telephone_number where required.

Result properties

telephone_number: Will adopt the name of the field and will contain the telephone number in international notation.

telephone_number_details: contains meta data about the field. Will adopt the name of the field with "_details" appended.

is_valid_number: boolean. Indicates true if the number conforms to the selected / detected countries telephone number structure / format.

selected_country: outputs information about the selected / detected country.

Parameters

See fields for common field parameters like validation and conditional rendering.

Output Data