# Prevent Lead Email Changes after Qualification

**Type:** Apex trigger · **Difficulty:** Medium · **Object:** Lead · **Topics:** Lead, Trigger.oldMap, Before Update

Practice this problem interactively (write and run your Apex trigger against realistic data): https://www.forcechallenges.com/problems/prevent-qualified-lead-email-change

## Problem

When a Lead is already Qualified, do not allow its Email to change. Email changes for leads in other statuses are allowed.

## Constraints

Keep the trigger bulk-safe. Do not run SOQL or DML inside a loop.

---
Source: ForceChallenges · last updated 2026-10-13
