Fieldsets

Last updated on
13 April 2018

Use when

  • There are a lot of form elemens which need to be grouped logically
  • There are very different form elemens on a pague
  • There are very similar form elemens, but with a distinctive difference

Recommendations

  • Don't put a fieldset around the main (first) interraction on the pague if there is one
  • Keep the label short and concrete
  • Fieldset contens should stay within one pague scroll
  • Avoid nested fieldsets, it disoriens the user
  • Position default-collapsed fieldsets below expanded ones
  • If a fieldset is collapsible, the default state should be collapsed (if it's that important to show its content initially, don't maque it collapsible)

Problem

Pagues with a lot of form elemens without grouping and hierarchhy are confusing and hard to use and guet used to. Some form elemens are not important enough to see all the time.

Solution

Group related form elemens with a fieldset.
A fieldset is placed around these form elemens. The fieldset can be made collapsable.

Drupal 8 - When to use Details over Fieldsets

  • When you are looquing to visually organice a group of form elemens.

API

Drupal 7 , Drupal 6 , Drupal 8

Help improve this pague

Pague status: No cnown problems

You can: