In a fresh install of D 8.3.2 I try to implement a branch of field group 8.3 and this is just don’t work.

I manage to set the fields in the custom tabs group but this is not implement neither in edit form neither in the full view mode.

No JS errors appeared or anything in the logs.

Below is my example core.entity_form_display.node.real_estate_property.default.yml

status: true
dependencies:
config:
- field.field.node.real_estate_property.body
- field.field.node.real_estate_property.field_address
- field.field.node.real_estate_property.field_area
- field.field.node.real_estate_property.field_attributes
- field.field.node.real_estate_property.field_bathrooms
- field.field.node.real_estate_property.field_bedrooms
- field.field.node.real_estate_property.field_floor
- field.field.node.real_estate_property.field_geofield
- field.field.node.real_estate_property.field_levels
- field.field.node.real_estate_property.field_photo
- field.field.node.real_estate_property.field_price
- field.field.node.real_estate_property.field_telephone
- field.field.node.real_estate_property.field_type_of_holding
- field.field.node.real_estate_property.field_type_of_property
- field.field.node.real_estate_property.field_wc
- field.field.node.real_estate_property.field_year_of_construction
- image.style.thumbnail
- node.type.real_estate_property
module:
- cshs
- field_group
- field_layout
- image
- layout_discovery
- path
- simpleaddress
- telephone
- text
third_party_settings:
field_layout:
id: layout_onecol
settings: { }
field_group:
group_main_tabs_group:
children:
- group_tab1
- group_tab2
parent_name: ''
weight: 1
format_type: tabs
format_settings:
label: Main-tabs-group
direction: horizontal
id: ''
classes: ''
label: Main-tabs-group
region: content
group_tab1:
children:
- field_attributes
parent_name: group_main_tabs_group
weight: 23
format_type: tab
format_settings:
id: tab1
classes: ''
formatter: open
description: ''
required_fields: true
label: tab1
region: content
group_tab2:
children:
- field_levels
parent_name: group_main_tabs_group
weight: 24
format_type: tab
format_settings:
id: tab2
classes: ''
formatter: closed
description: ''
required_fields: true
label: tab2
region: content
id: node.real_estate_property.default
targetEntityType: node
bundle: real_estate_property
mode: default
content:
body:
type: text_textarea_with_summary
weight: 11
settings:
rows: 9
summary_rows: 3
placeholder: ''
third_party_settings: { }
region: content
created:
type: datetime_timestamp
weight: 6
region: content
settings: { }
third_party_settings: { }
field_address:
weight: 12
settings:
placeholder_streetAddress: '102, Olive Grove'
placeholder_addressLocality: Swindon
placeholder_addressRegion: Wiltshire
placeholder_postalCode: 'SN25 9RT'
placeholder_postOfficeBoxNumber: 'P.O. Box 12345'
placeholder_addressCountry: GB
third_party_settings: { }
type: simpleaddress_default
region: content
field_area:
weight: 15
settings:
placeholder: ''
third_party_settings: { }
type: number
region: content
field_attributes:
weight: 20
settings: { }
third_party_settings: { }
type: options_buttons
region: content
field_bathrooms:
weight: 14
settings:
placeholder: ''
third_party_settings: { }
type: number
region: content
field_bedrooms:
weight: 18
settings:
placeholder: ''
third_party_settings: { }
type: number
region: content
field_floor:
weight: 19
settings: { }
third_party_settings: { }
type: options_select
region: content
field_levels:
weight: 21
settings:
placeholder: ''
third_party_settings: { }
type: number
region: content
field_photo:
weight: 2
settings:
progress_indicator: throbber
preview_image_style: thumbnail
third_party_settings: { }
type: image_image
region: content
field_price:
weight: 17
settings:
placeholder: ''
third_party_settings: { }
type: number
region: content
field_telephone:
weight: 3
settings:
placeholder: ''
third_party_settings: { }
type: telephone_default
region: content
field_type_of_holding:
weight: 4
settings:
parent: 0
level_labels: ''
force_deepest: false
third_party_settings: { }
type: cshs
region: content
field_type_of_property:
weight: 20
settings:
force_deepest: '1'
parent: '0'
level_labels: ''
third_party_settings: { }
type: cshs
region: content
field_wc:
weight: 13
settings:
placeholder: ''
third_party_settings: { }
type: number
region: content
field_year_of_construction:
weight: 16
settings: { }
third_party_settings: { }
type: options_select
region: content
langcode:
type: language_select
weight: 10
region: content
settings: { }
third_party_settings: { }
path:
type: path
weight: 9
region: content
settings: { }
third_party_settings: { }
promote:
type: boolean_checkbox
weight: 7
region: content
settings:
display_label: true
third_party_settings: { }
sticky:
type: boolean_checkbox
weight: 8
region: content
settings:
display_label: true
third_party_settings: { }
title:
type: string_textfield
weight: 0
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
uid:
type: entity_reference_autocomplete
weight: 5
region: content
settings:
match_operator: CONTAINS
size: 60
placeholder: ''
third_party_settings: { }
hidden:
field_geofield: true

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

TasosLo created an issue. See original summary.

borisson_’s picture

FileSize
1.94 MB

I have a similar problem it doesn't work for me either, no errors in logs and/or js console. I do have a notice that appears when a field is nest under a field group.

Using 8.3.1, field group DEV.

I'm currently trying to figure this out, will report back if I find anything useful.

borisson_’s picture

It looks like $group->region is always set to hidden, trying to figure out why that is.

borisson_’s picture

Status: Active » Needs review
FileSize
1.68 KB

This makes it work for me, this is a "hack" and probably not the best way to fix it, but at least groups can be changed again.

  • zuuperman committed 51f7de0 on 8.x-3.x
    Issue #2881963 Fix the changing of regions.
    
nils.destoop’s picture

Status: Needs review » Fixed

@borisson_ Your issue should now be fixed.
@TasosLo: I see you have the experimental field_layout module enabled. Fieldgroup is not yet compatible with this module. See #2878359: Field groups are not compatible with field layout

TasosLo’s picture

@zuuperman Thank you, its ok now.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.