Make compatible with Field Group module Tabs widget

Created on 22 April 2025, 25 days ago

Problem/Motivation

When using the Field Group module (field_group) to organize fields using the Tabs widget we configure so the tab includes the standard red asterisk indicating that a required field exists on the tab. We want the red asterisk to be replaced by a the blue triangle when all the fields on the tab are only required on publish.

For example, the Build tab in the screenshot below features one field, a Paragraph field which has been configured to use the Required on Publish functionality. As you can see in the tab, the red asterisk appears indicating it is required. We'd prefer that to be a blue triangle indicating it is only required on publish.

Here is a screenshot of the Tabs widget configuration form. The "Mark group as required if it contains required fields." field is checked which causes the red asterisk to appear. If this is checked and the group contains only fields indicated as required on publish, then the red asterisk should change to a blue triange.

Steps to reproduce

  1. Install Require on Publish module
  2. Install Field Group module
  3. Update content type to use a Field Group form widget (Tabs) and check the "Mark group as required if it contains required fields." box.
  4. Add a friend to the field group that is set to be required on publish

Proposed resolution

See "Problem/Motivation" above.

Remaining tasks

User interface changes

See "Problem/Motivation" above.

API changes

Data model changes

✨ Feature request
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States capellic Austin, Texas

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

Comments & Activities

Production build 0.71.5 2024