Both Vertical and Horizontal tabs on the same page do not work

Created on 7 February 2025, 3 months ago

Problem/Motivation

If you have both vertical and horizontal tabs on the same page, the 'required' functionality will not work since modules/contrib/field_group/formatters/tabs/tabs.js is only called with whichever happens first: horizontal or vertical

This is because 'tabs' is considered the 'format type' rather than separation between the two tab types. This means the settings passed will either be 'horizontal' or 'vertical', not both.

Steps to reproduce

  1. On the same entity, create both horizontal and vertical tab groups with required fields
  2. Ensure that 'Mark group as required if it contains required fields' is ticked

Proposed resolution

Process both horizontal and vertical tabs if existing

Remaining tasks

Refactor the code to allow for this

User interface changes

All field groups with required fields are highlighted as required even if there is a mix of horizontal and vertical tabs.

API changes

N/A

Data model changes

N/A

🐛 Bug report
Status

Active

Version

4.0

Component

Code

Created by

🇬🇧United Kingdom scott_euser

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024