Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

CCK Select Other

352 sites Security covered
View on drupal.org

This module provides a select list field option that allows users to either choose from a predefined list or enter their own custom value. It works with core list fields and offers additional features like views filtering and a custom "other" label.

CCK Select Other introduces an alternative select list widget that provides a user with either a select list or text input.

Features

  1. Uses native core List fields, which allows to swap out the select widget at any time.
  2. Provide a field formatter.
  3. Supports views filter.
  4. Support custom Other label.
  5. Drupal 8 and greater
    1. Uses allowed value.
  6. Drupal 6-7
    1. Supports allowed values and stores options in separate configuration.
    2. 7.x-2.x: Support field collection and other element altering modules.

Known issues

  • Drupal 7: i18n is not supported because i18n does not support form element children correctly.
  • Drupal 8 or greater: Using checkboxes / radio buttons

Release status

  • 2.0.x: 2.0.0-alpha2 released. Drupal 11.
  • 8.x-1.x: 1.6 stable released. Drupal 10 only.
  • 7.x-2.x: Better support for field collection, list_integer. Not ready for production-use
  • 7.x-1.x: 1.2 stable released.
  • 6.x-1.x version is stable and works fine for normal use cases. There are a number of tasks related to advanced use cases such as with conditional field or flexifield.

Drupal 8+: How it works

The decoupling of fields and widgets caused much issue with this module as a field no longer understands what widget a value came from. Despite the benefit of decoupling this means that CCK Select Other MUST re-couple the dependency and blow away reliance on AllowedValuesConstraint and AllowedValuesConstraintValidator classes and redoing everything from scratch. Now any field that uses the select other widget in any form display will pass through allowed values. Don't like it? Fix core.

Drupal 6: How it works

CCK renders the form element as fieldset with multiple elements. When processed the form element is deconstructed into a simple element so that CCK will save the field properly. If validation fails the form element needs to be reconstructed as the fieldset.

Activity

Total releases
3
First release
Dec 2024
Latest release
3 weeks ago
Releases (12 mo)
1 ▼ from 2
Maintenance
Active

Release Timeline

Releases

Version Type Release date
2.0.0-alpha3 Pre-release Jun 22, 2026
2.0.0-alpha2 Pre-release Dec 5, 2024
8.x-1.6 Stable Dec 5, 2024