In Drupal 8, 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.

See readme for the complete process.

Similar modules

Form mode Manager: Form mode manager does not affect the default form but provides new tabs and links for creation / edition with any form modes managing also access permissions. It has therefore more impact on your site admin.

Roadmap for compatibility:
> Share the permissions between the two modules somehow ?
> Disable the display=xxx function on the form manager forms.

Supporting organizations: 
development
contributes

Project information

Releases