Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Facets 3.0.6 Minor update available for module facets (3.0.6). Release: Facets 3.0.5 Minor update available for module facets (3.0.5). Release: Flag 5.1.0 Minor update available for module flag (5.1.0). Release: Block Layout Accordion 1.0.2 Minor update available for module block_layout_accordion (1.0.2). Release: Canvas interactive toggle 1.0.2 Minor update available for module canvas_interactive_toggle (1.0.2). Release: Views HTTP Client 1.0.2 Minor update available for module views_http_client (1.0.2). Release: Block Layout Accordion 1.0.1 Minor update available for module block_layout_accordion (1.0.1). Release: Canvas interactive toggle 1.0.1 Minor update available for module canvas_interactive_toggle (1.0.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Field Group Markup

984 sites Security covered Drupal 9–11
View on drupal.org

This module allows you to add processed HTML markup directly into your entity form displays, enhancing customization without complex coding. It works by providing a special formatter for field groups that supports any text format and all standard field group settings.

Ever wanted to add some markup to a form display mode or view display mode and found it more difficult than imagined? Rage no more.

You probably already have Field Group installed and you don't want to add another module that will clutter your entities with fully fledged markup fields (of which there are many).

How it works

This module provides a very simple and basic Field Group Formatter that allows you to add processed HTML as markup to your entity form displays.

It started off by using #markup on a field_group_html_element with a div as #wrapper_element, but in order to support WYSIWYG editing and other fancy formatting (no one likes writing raw HTML into a text box) the formatter now supports any text format you like.

All base Field Group settings (like ID, classes, and hiding if empty) are supported.

Now you can inject markup into your entity forms to your heart's content without using hook_form_alter or markup field modules.

It's recommended that you leave "Display element also when empty" checked (it is by default) especially if you don't plan to nest anything inside your markup element.

Future features

There is some basic support for tokens, but more could be done to provide UI support and integrate tokens for the underlying entity: #3309975: Token support to fieldgroup markup text

Right now the module only provides markup that is HTML and wrapped in a div. Some further config options or a second "raw" formatter could be added to remove the wrapper and provide fuller control over the output and wrapper.

Similar modules that use fields rather that fieldgroups as a solution

  • Markup - provides a fully-fledged markup field for entities.
  • Extra field - provides pseudo-fields for developers
  • Markup field - provides a fully-fledged markup field for entities (with CSS/JS)
  • Inline formatter field - provides a fully-fledged field with with token / HTML / Twig support and boolean checkbox to enable field output per entity.

Depends on

Dependencies of the latest stable release

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Oct 2025
Latest release
3 months ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Active

Releases

Version Type Core Release date
1.0.4 Stable 9–11 May 14, 2026
1.0.3 Stable 9–11 Oct 24, 2025