Drupal is a registered trademark of Dries Buytaert
cms 2.1.3 Update released for Drupal core (2.1.3)! drupal 10.5.11 Update released for Drupal core (10.5.11)! drupal 11.3.11 Update released for Drupal core (11.3.11)! drupal 11.2.13 Update released for Drupal core (11.2.13)! drupal 10.6.10 Update released for Drupal core (10.6.10)! cms 2.1.2 Update released for Drupal core (2.1.2)! drupal 11.1.10 Update released for Drupal core (11.1.10)! drupal 10.5.10 Update released for Drupal core (10.5.10)! drupal 10.4.10 Update released for Drupal core (10.4.10)! drupal 11.2.12 Update released for Drupal core (11.2.12)! drupal 11.3.10 Update released for Drupal core (11.3.10)! drupal 10.6.9 Update released for Drupal core (10.6.9)! drupal 10.6.8 Update released for Drupal core (10.6.8)! drupal 11.3.9 Update released for Drupal core (11.3.9)! drupal 11.3.8 Update released for Drupal core (11.3.8)! drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)!

entity_form_mode

186 sites Security covered
View on drupal.org

This module allows you to use different form modes for adding or editing entities as nodes, taxonomy terms or comments.

It hooks up form modes corresponding to entity form routes. The route to add or edit an entity is called "entity.taxonomy_term.add" or "entity.node.edit_form". All you have to do to display i.e. the edit form in its own form mode is to offer a form mode with the (machine) name "edit_form" (the last part of the route name). This is automatically selected by this module to display the form.

The module is very lightweight. It consists of only 10 lines of code that make the life of Drupal developers so much easier. There are no known issues.

Restrictions:

Works for default entity types as Nodes, Taxonomy Terms, Comments and custom entity types so far the forms are displayed with their own route and the naming convention for entity forms is followed: entity.{entity_type_id}.{form_id}. For adding Nodes you should use the "default" form mode, because the route name to add nodes is "node.add" instead of "entity.node.add" for other node forms it should work as expected. For User entities this module doesn't work.

Installation

Download and install as you usually do or described here.

Configuration

  • Go to "Admin > Structure > Display Modes > Form Modes > Add Form Mode" (or /admin/structure/display-modes/form/add) and select i.e. "Content".
  • Type "Edit form" (important: Machine name must be "node.edit_form") and save.
  • Got to "Admin > Structure > Content types > Article > Manage form display" (or /admin/structure/types/manage/article/form-display) and enable the new form mode "Edit form" in the section "Custom display settings" and save.
  • Click the tab "Edit form" that appears now on the page "Manage form display" and customize the Form to use, when you will edit an existing article entity.
  • You are done.

REQUIREMENTS

No requirements.

Activity

Total releases
1
First release
Apr 2026
Latest release
1 month ago
Release cadence
Stability
100% stable

Releases

Version Type Release date
2.0.3 Stable Apr 23, 2026