Sub topic 4
3. User Control and Freedom
This chapter assumes you know what a user interface is and have basic experience using websites or apps. You do not need JavaScript, but the example uses it to show how an interface can support recovery.
What the heuristic means
User control and freedom means that people can start, stop, reverse, or leave an action without feeling trapped. Users often click the wrong button, open the wrong screen, or change their minds. A good interface gives them a clear way to recover.
This heuristic is especially important for actions that are difficult to reverse, such as:
- Deleting a file
- Sending a message
- Submitting an order
- Changing account settings
- Leaving a form with unsaved work
The interface should make the user feel that they are in charge. It should not force them through an unexpected path or hide the way back.
Design patterns that support control
A back affordance is a visible control that lets users return to a previous state. A state is the current condition of an interface, such as a filled form or a selected filter. Common back affordances include a Back button, a Close button, Cancel, and an exit icon.
For risky actions, provide one or more of these patterns:
- Cancel: Stops the current action without applying changes.
- Undo: Reverses a completed action.
- Restore: Returns content to an earlier saved version.
- Confirmation: Asks the user to verify a high-impact action.
- Save draft: Preserves unfinished work before the user leaves.
- Back navigation: Returns to the previous screen without losing context.
Confirmation dialogs are useful when an action has serious consequences. They are harmful when they appear for every small action. Too many dialogs train users to click through them without reading.
An undo action is often better than a confirmation dialog for deletion. It keeps the main workflow fast while still providing a way out.
let items = ["Invoice", "Report", "Notes"];
function removeItem(index) {
const [removed] = items.splice(index, 1);
return function undo() {
items.splice(index, 0, removed);
};
}
const undo = removeItem(1);
// items is now ["Invoice", "Notes"]
undo();
// items is back to ["Invoice", "Report", "Notes"]The removeItem function returns an undo function. A real interface could show a temporary message such as “Report deleted. Undo”. The message should remain long enough to notice and activate, and it should work with a keyboard as well as a pointer.
Finding violations
During an evaluation, try normal and incorrect paths. Ask questions such as:
- Can the user cancel without losing entered information?
- Can the user return to the previous step?
- Can the user undo an accidental change?
- Does closing a dialog clearly discard or preserve the work?
- Does the interface trap the user in a process?
- Are irreversible actions clearly identified before they happen?
A useful test is to perform an action by mistake and then look for the fastest safe recovery. If recovery requires contacting support, repeating a long process, or guessing an unfamiliar icon, the design probably violates this heuristic.
A concrete fix
Suppose a task manager immediately deletes a task when the user clicks a trash icon. There is no Undo button, and the task cannot be restored.
A concrete fix is to remove the task from the visible list, show “Task deleted”, and provide an Undo button for a short period. For especially important data, also keep deleted items in a recoverable trash area. This gives users quick control without interrupting every deletion with a confirmation dialog.
Exercise
A form has a Save button but no Cancel button. Pressing the browser's Back button discards all entered data. Which part of user control and freedom is missing, and what change would you propose?
Show answer
The form lacks a safe way to leave or reverse the task. Add a Cancel or Back control that clearly states whether data will be discarded, and offer Save draft when the work may take time.