Hide field group on toggle

Hey there,
I’d like to show/hide a field group on toggle change, like “show/hide expert settings”, you know?

This is the setup:

      extend_menu:
        extends: fields/toggle
        label: Show advanced settings

      my_group:
        extends: fields/groups/mygroup
        when:
          extend_menu: true

… which doesn’t work atm.
Any pointer appreciated!

Cheers,
S1S

when works on a field basis, not on a group. So you would have to set this property for each field in the group.

That’s my solution for now - although I hoped for a more portable approach, but I guess when making the toggle part of the group, it’s consistent enough.

Thx!