There are multiple ways to make custom fields required. We'll provide some information on each option available.
Salesforce provides four ways to make a custom field required, each with different scope and behavior. Use Field-Level Requirements when the field must always be populated regardless of how records are saved (including API and integrations). Use Page Layout Requirements when the field should only be required for users on a specific layout. Use Validation Rules for conditional logic. Use Dynamic Forms for Lightning Experience page-specific requirements.
This is the most restrictive of requirements, and it requires the field to be entered all the time, regardless of how the record is saved (i.e. through an integration, the API, mass upload, or through the User Interface). Read through these instructions for more information.
Require Field Input to Ensure Data Quality
Custom Field Attributes
In Salesforce Classic
In Lightning Experience
This option only makes the field required when the specific page layout that you set this requirement on is accessed. Therefore, you could technically make this required for some Users that use a particular page layout but not others. Please review, Customize Page Layouts with the Enhanced Page Layout Editor.
Note: This requirement only applies when the record is edited on the user interface. When records are updated via API field requirement does not apply.
In Salesforce Classic
In Lightning Experience
The simplest validation rule to make a custom field required looks like this:
ISBLANK(Enter_Custom_Field_API_Name_Here__c)
Or, if the field is a Number or Currency type field use this syntax:
ISNULL(Enter_Custom_Field_API_Name_Here__c)
You can build more complex validation rules that have conditional statements to meet your business needs. Please review Define Validation Rules.
Note: Like the field level setting, this will apply all the time, regardless of where the record is created or updated. Read Validation Rule Considerations to know what impact this will have.
In Salesforce Classic
For custom object:
In Lightning Experience
Dynamic Forms can be used to create Required fields on New and Edit Modals, as well as Lightning Record Pages. Please review, Required and Read-Only Fields in Dynamic Forms.
Note: If you set a field on a Lightning page to Required or Read-Only in the Lightning App Builder property panel, the behavior applies only to the field on that page, not to all instances of the field.
In Lightning Experience
000384974

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.