In this recipe, we will create a validation rule that ensures that an explanation is provided whenever an opportunity is set to Lost.
To store the reason for the lost opportunity, we will create a custom field called Reason Lost (which we will name Reason_Lost__c). This will be created and checked using a validation rule.