Skip to content

Root-level groups are auto-converted to tabs and may hide trailing fields #7087

@paul-carteron

Description

@paul-carteron

What is the bug or the crash? What were your expectations and what actually happened?

Hi,

I encountered unexpected behavior (at least for me) when working with groups in attribute form.

Root containing only groups are automatically converted to tabs

If the root of the attribute form contains only groups, they are automatically converted into tabs in QField.
I expected to have multiple groups displayed vertically (without tabs).

This behavior is shown in layer1 of the sample project:

If there is at least one field at the root before the groups, tab conversion does not occur.

This is shown in layer2:

Root-level groups followed by fields cause fields to disappear in QField form

If the root contains:

  • group1
  • group2
  • field1

QField converts the groups into tabs, but the trailing field is not displayed, the field appears to be ignored.

This is shown in layer3:

If all elements are wrapped inside a single parent group, the form behaves as expected (no unwanted tab conversion, and all fields are displayed).

This is shown in layer4:

Steps to reproduce the issue

Everyhting is inside this sample project : sample_project.zip

Version

Qfield 4.0.6 - Aare (d9e2cD4 v4.0.6) - QGIS 3.44.5 | GDAL/OGR 3.11.4 | Qt 6.9.3

Operating system name

Windows

Operating system version

Windows 11 Professionnel

Reinstall QField

  • I have a fresh install of the latest QField version, but the problem persists.
  • Problem can be reliably reproduced, doesn't happen randomly.
  • Problem happens with all files and projects, not only some files or projects.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions