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.
Result
The field will be displayed as a input field as below:
The resultant data will be available in the stubpost.data
as:
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:
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.