UI Design Recommendations
- Designing More Efficient Forms: Structure, Inputs, Labels and Actions
- Input form label alignment top or left?
- For a usual form, place the label above the text field
- If the user uses the form often to edit fields, then it might make sense to switch to left-aligned labels
Designing GUI Confirmation Dialogs
- Avoid asking questions
- Be as concise as possible
- Identify the item at risk
- Name your buttons for the actions
More information:
- StackOverflow: What are some alternatives to the phrase “Are you sure you want to XYZ” in confirmation dialogs?.
- JabRef issue discussing Yes/No/Cancel: koppor#149.
Name your buttons for the actions
req~ui.dialogs.confirmation.naming~1
Needs: impl
Form validation
- Only validate input after leaving the field (or after the user stopped typing for some time)
- The user shouldn’t be able to submit the form if there are errors
- However, disabling the submit button in case there are errors is also not optimal. Instead, clicking the submit button should highlight the errors.
- Empty required files should not be marked as invalid until the user a) tried to submit the form or b) focused the field, deleted its contents and then left the field (see Example).
- Ideally, the error message should be shown below the text field and not as a tooltip (so that users quickly understand what’s the problem). For example as in Boostrap.