2 votes

Appstract Contact Number

This adds a contact (phone) number custom property editor that allows to select a country code a list of countries and shows a green checkbox if the number is known to be of correct for the country.

 

Usage

Auto-generated model classes (using the Umbraco Models Builder) will automatically generate properties using the `Appstract.UmbracoContactNumber.ContactNumber` class.

Umbraco will deserialize the value into this class automatically, when using `this.Value<Appstract.UmbracoContactNumber.ContactNumber>("propertyAlias")`.

 

The `ContactNumber` class gives access to the raw information put into the property editor, but also a property that formats the input.

Example: If the country code has been set to `Denmark (+45)` and the number to `98765432`, the `FormattedContactNumber` property will return `+45 98765432`.

Screenshots

Package owner

Appstract

Appstract

Appstract has 82 karma points

Package Compatibility

This package is compatible with the following versions as reported by community members who have downloaded this package:
Untested or doesn't work on Umbraco Cloud
Version 8.18.x (untested)

You must login before you can report on package compatibility.

Previously reported to work on versions: 8.5.x, 8.1.x

Package Information

  • Package owner: Appstract
  • Created: 10/03/2020
  • Current version 1.0.22
  • .NET version 4.7.2
  • License MIT
  • Downloads on Our: 59

External resources