Form Mode Control

In Drupal 8 and newer, you can create form modes which control how the fields are displayed in the edit form of content such as nodes and taxonomy terms.

The "issue" is that you can't actually make use of those form modes from config except for user register and edit forms.

This module allows you:

  • to define access to each form mode for the different roles,
  • to define for each role, each bundle of each entity which form mode should be selected by default during the creation and edit of a content. Of course you should grant access before defining this. If a user has multiple roles, the weight of the roles is taken into account (heaviest one),
  • to access any of the form modes—as long as you have the permission—by adding a simple parameter such as the following example: node/add/article?display=form_mode_machine_name.