Form in Figma
Groups fields into sections, lays them out, and checks them.
Use a Form for anything people fill in and submit. Group fields into sections with a title, put short pairs side by side, and end with the buttons. In code, Form checks required fields and your own rules, and shows the errors on the right fields.
Do
- Group related fields into sections with a short title.
- Put short pairs side by side, like first and last name.
- Show errors after submit, then clear them as people fix them.
- Put the main button last, and keep Cancel next to it.
Don't
- Disable the submit button; let people submit and see what to fix.
- Use placeholders as labels; they disappear as people type.
- Put more than two or three fields in a row.
- Split one question across several fields when one will do.