# Require Lead Company

**Type:** Apex trigger · **Difficulty:** Easy · **Object:** Lead · **Topics:** Lead, Validation

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

## Problem

Before a Lead is saved, require a company name. If Company is blank, stop the save and tell the user what to enter.

## Constraints

Write bulk-safe trigger logic and do not run SOQL or DML inside loops.

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