Drupal is a registered trademark of Dries Buytaert

set_field_defaults

6 sites No security coverage
View on drupal.org

The Field Default Values module allows administrators to configure default values for various field types, ensuring consistency and reducing manual input when creating new fields.

This module automatically adds the default values when creating a new field.

Key Features

  • Automatic Default Values – Applies predefined values to newly created fields.
  • Supports Multiple Field Types – Works with text, number, link fields, and more.
  • Admin Configuration – Easily manage settings via a dedicated admin page.
  • Seamless Integration – Hooks into the field configuration system for smooth workflows.

Why Use This Module?

  • Saves time by reducing manual configuration.
  • Ensures consistency across entity types.
  • Provides a simple and intuitive UI for setting defaults.

How It Works?

The module integrates directly with Drupal's field system. When creating a new field, the configured default values are automatically applied if the option is enabled.

  • Administrators can define default values per field type.
  • When a new field is added, the default values are pre-filled.
  • The default values can still be manually adjusted if needed during field creation.

Installation & Configuration

  1. Install via composer (composer require drupal/set_field_defaults) or manually place in the /modules/custom directory.
  2. Enable the module from the Extend page (/admin/modules).
  3. Configure settings under ConfigurationSystemField Default Values (/admin/config/field-defaults).

Activity

Total releases
3
First release
Feb 2025
Latest release
10 months ago
Release cadence
30 days
Stability
67% stable

Release Timeline

Releases

Version Type Release date
1.0.1 Stable Apr 19, 2025
1.0.0 Stable Feb 19, 2025
1.0.x-dev Dev Feb 19, 2025