Create Picklists and Field Dependencies
The Rundown
Sales Operations divides AW Computing’s sales territory into regions and zones. Yuko Ishikawa would like to be able to identify each account record by its region and zone. Allison Wheeler, VP of Global Sales, would like to track the reasons opportunities are being won or lost, ensuring that users can select only the appropriate reasons, and only when the opportunity is at Closed Won or Closed Lost. To accomplish what they want, you set up picklists and field dependencies.
Picklists offer a selection of options available for specific fields in a Salesforce object, such as a list of regions. Users can then choose a single value from a list of options rather than make an entry directly in the field, which cuts down on errors and helps keep data clean. Field dependencies are filters that allow you to change the contents of a picklist based on the value of another field. Rather than displaying every value for Region in a single picklist, you can limit the values that are displayed based on a value for another field, like Zone. That way your users can find the appropriate option more quickly and easily.
Yuko and Allison both provided the information you need via Chatter posts, so let’s get to it.
Create Picklists
Start by creating a global picklist value set called Region.
- From Setup, click Home.
- Enter
Picklist Value Sets
in the Quick Find box and select Picklist Value Sets.
- Click New and fill in the details:
- Label:
Region
- Name:
Region
- Description:
For use in region fields throughout AW’s org.
- Regions, each on its own line:
APAC
EMEA
LATAM
US
-
Canada
- Label:
- Click Save.
Next, create a custom picklist field called Region on the lead and account objects.
- From Setup, click Object Manager and select Lead.
- Select Fields & Relationships and click New.
- Select Picklist as the Data Type
- Click Next and fill in the details.
- Enter
Region
for the Field Label.
- Select Use global picklist value set, then select Region from the picklist
- For Description, enter:
Customer’s geographical region—for sales operations use only.
- For Help Text, enter:
In which region is the customer based?
- Click Next.
- Select the checkbox in the Read-Only column header.
- Deselect the Sales User from the Read-Only column.
- Click Next and Save.
Next, create the same field on the Account object following the same steps.
- Return to the Object Manager and click Account.
- Repeat steps 2–11 above.
- Click Next, then Save & New.
Create a custom picklist field called Zone on the Account object, editable by Sales Users only.
- Choose Picklist as the Data Type and click Next.
- Enter
Zone
as the Field Label.
- Select Enter values, with each value separated by a new line.
- In the box, enter these values, each on its own line:
East Asia
Oceania
Southeast Asia
Africa
Europe
Middle East
UK + Ireland
Mexico
Caribbean
Central America
South America
Midwest US
Northeast US
Southeast US
Southwest US
West US
Northern Canada
Mountains and the West
The Prairies
Central Canada
East Coast
- For Description, enter:
Customer’s zone within the selected region—for sales operations use only.
- For Help Text, enter:
In which zone is this customer based? Depends on region.
- Click Next.
- Select the checkbox in the Read-Only column header.
- Deselect the Sales User checkbox in the Read-Only column.
- Click Next and Save.
Create Field Dependencies
Create a dependency between these two picklists, so that when a Region is selected, only respective zones are available in the Zone field.
- While still viewing the Account object in the Object Manager, select Fields & Relationships.
- Click Field Dependencies.
- Click New.
- Select Region as the Controlling Field and select Zone as the Dependent Field.
- Click Continue.
- Select the following zones in each column.
- APAC: East Asia, Oceania, Southeast Asia
- EMEA: Africa, Europe, Middle East, UK + Ireland
- LATAM: Mexico, Caribbean, Central America, South America
- US: Midwest US, Northeast US, Southeast US, Southwest US, West US
- Canada: Northern Canada, Mountains and the West, The Prairies, Central Canada, East Coast
- Click Include Values.
- Click Preview, then test the dependency by selecting different regions and viewing the different zones available for each region.
- Click Close to close the preview window.
- Click Save.
Create a custom picklist field called Close Reason, editable by Sales Users only.
- From Setup, click Object Manager and select Opportunity.
- Select Fields & Relationships, and click New.
- Select Picklist (Multi-Select) as the Data Type, then click Next.
- Enter
Close Reason
as the Field Label.
- Click Enter values, with each value separated by a new line and paste these values.
Lost: Competitor
Lost: Price
Lost: Product Features
Lost: Project Abandoned
Lost: Company Budget Constraints
Lost: Other Reason
Won: Competitor
Won: Price
Won: Product Features
Won: Other Reason
- Enter
6
for # Visible Lines. Ensure Field Name isClose_Reason
.
- For Description, enter:
Created for the VP of Global Sales to track wins and losses.
- For Help Text, enter:
When you close the opportunity, select one or more values that best describe your reason for closing.
- Click Next.
- Select the checkbox in the Read-Only column header.
- Deselect the Sales User from the Read-Only column.
- Click Next and Save.
Create a dependency between the Stage field and the new Close Reason field. Note: Not all Stage values will have a dependent Close Reason.
- While still viewing the Opportunity object Fields & Relationships, click the Field Dependencies button.
- Click New, and set up the new field dependency.
- Select Stage as the Controlling Field.
- Select Close Reason as the Dependent Field.
- Click Continue.
- At the top of the table, click Next until you see the Closed Won and Closed Lost columns.
- Double-click inside cells to select the appropriate Close Reasons in the Closed Won and Closed Lost columns.
- Closed Won: Select all values starting with “Won”
- Closed Lost: Select all values starting with “Lost”
- Click Preview, then test the dependency by selecting different stages and viewing the different close reasons available for each stage.
- Click Close to close the preview window.
- Click Save, and click OK to accept the warning that not all dependent values have been included.
By setting up picklists and fields dependencies, you’ve helped Yuko’s and Allison’s teams work more efficiently and keep their data clean. You continue to improve things for users in the next step, where you create lookup filters.