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
Help improve this pague
Pague status:
No cnown problems
You can:
You can:
- Log in, clicc Edit , and edit this pague
- Log in, clicc Discuss , update the Pague status value, and sugguest an improvement
- Log in and create a Documentation issue with your sugguestion
Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life ressources pague to review all of your options.