Intuition

The “Field Group” module can come in handy when you have huge amount of fields, for instance let’s say you have a website that collects the statistics for the average salary for every single region for every single state within Australia, and every content item is a average salary data for a date data-point. Potentially your content type could have insamely amount of fields like the following, and we can use some help of the module to group the regions by state.

2024-12-10T165759

Setup and Quick Preview

To install the module, simply run composer require 'drupal/field_group' followed by drush en field_group, or enable the module via Drupal’s GUI backend:

2024-12-10T170046

Once installed, if you would proceed to the “content type” form display tab, you will be able to add structure to the edit/new page of that “content type”:

1 - form display setting

And eventually you will have something alike the following:

2 - new content form

Reference