Error Prevention in Critical Actions: Freelock's Drupal Advent Insight
Freelock’s Drupal Advent Calendar post explores error prevention in high-risk web interactions, such as legal, financial, and data-related actions. These interactions, especially impactful for users with disabilities, fall under WCAG 2.1 guideline 3.3.4, which recommends making actions reversible, validating input before submission, or requiring user confirmation.
Examples in Drupal include the Trash module, which allows reversibility and input validation to catch errors before submission. Confirmation dialogues and review screens provide an additional layer of protection, helping users spot mistakes while also defending against CSRF and XSS attacks. These mechanisms improve both usability and security. Freelock advises using clear, contextual confirmations and making safe choices prominent. The post cautions against overusing confirmation dialogues, which can lead users to ignore important prompts. Error prevention is framed as a shared responsibility—developers are encouraged to anticipate mistakes and design safeguards that help users avoid costly errors.


