type crud page
field storage settings
form view of module field
display of module field

Creates a new field type that combines a simple textfield with a dropdown.

Features

  • Types are a config entity, and thus are easy to add or manage from the UI
  • Due to the above, they are exportable between enviroments as well.
  • Numbers are plain text for now, without special validation.
  • Types are configurable per instance (you can select which types are available to each field).

Bonus feature

Since the "telephone" field is not really validated, you can abuse this module to have any kind of typed texts.

Dependencies

- Drupal Core

Installation

- Install as any other module, composer is not required but highly recommended.

Usage

- After installing, visit the /admin/config/content/telephone_type page to add / edit pre-installed / delete types.
- Use the Field UI to add on any entity.

Supporting organizations: 

Project information

Releases