-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Form Design Guidelines
Please keep these rules in mind while designing forms
Fields related to each other should be next to each other. If the visibility of a field is dependent on another field, it must ideally be below the field.
Important and mandatory fields should be on the top and left. This is the area that gets maximum attention of the user. If the mandatory fields are in the bottom, users may not scroll all the way down and then will get an error, making them go back and fix something.
If your section is having more than 6 fields, try and group them into a separate section. Sections promote hierarchy, that make the form look organized and make it easy for users to skim through the data they are looking for.
Keep the number of mandatory fields you want the user to enter at an absolute minimum. Please use defaults, either global, or in context of the workflow.
If your document is related to other items, the Form Dashboard must show a list of all related documents in a grouped manner. This will enable contextual discovery and navigation, and the user will be able get a quick understanding of what is the relation of this document related to the rest of the system.
If your section does not have an heading, it will be considered an extension of the previous section. Section heads help the form look organized.
Avoid the pattern where you will "fetch" data based on a button as much as possible. This must be done automatically on selection. If you need buttons, then put them on the toolbar.
Only documents that represent things that have names in the real world should have user created names, for the rest, the document name must be an auto-number. For example an Invoice
No piece of information lives by itself, it is always connected to some other piece of information. Having contextual navigation makes it easier for the user to comprehend how this document lives in context to other documents. A dashboard can be added by setting "Document Links" in the DocType.
Make field and section labels and titles as self explanatory as possible. Descriptions are additional UI that clutter the form and should be used very rarely to give additional information about the field.
If the form has an "Enabled" or "Disabled" field, it must be in the last field in the first column of the first section. When the form is disabled, all fields other than the enable/disable field should be read-only.
If there are any logs related to background activities related to an integration or transaction, they must linked from the parent transaction or the configuration object. (Example: General Ledger Entries for an invoices are linked form the Invoice, or Email Queue linked from Email Account).