[ScenarioSolutionIntro ]
[sc:ScenarioSolution ]
[RCNotLoggedInNotAdmin]
[/RCNotLoggedInNotAdmin]
[RCAdmin]
In this scenario, we only want Device Type to be selectable when the case Type is “Website”. We want the Device OS to be selectable when Device Type is populated.
In order to accomplish this, the following steps will be taken:
- Add “Website” picklist value to case Type field.
- Ensure Type field is listed on the case page layout.
- Add custom picklist field “Device Type”.
- Add custom picklist field “Device OS”.
- Make Device Type dependent on Type.
- Make Device OS dependent on Device Type.
[sc:ScenarioSolutionSteps ]
Add “Website” picklist value to case Type field.
- Setup –> Customize –> Cases –> Fields.
- Click on the Type field.
- Click New (next to Picklist Values).
Enter “Website”.
Click Save.
Ensure Type field is listed on the case page layout.
- Setup –> Customize –> Cases –> Page Layouts.
- Click Edit next to Case Layout (or click Page Layout Assignment to determine which layout is assigned to your profile).
- Drag the “Type” field to page if it is not already present. Click Save.
Add custom picklist field “Device Type”.
- Setup –> Customize –> Cases –> Fields.
- Click New (to add a new field).
- Select Picklist.
Click Next. - Enter field label “Device Type”.
Enter picklist values:
Computer
Tablet
Click Next. - Click Next.
- Click Save.
[box type=”note” style=”rounded” border=”full”]The value “Other” will be usable by either Computer or Tablet devices, but only needs to be entered once in the list of picklist options. In fact, you cannot have duplicate values in a picklist.[/box]
Add custom picklist field “Device OS”.
- Setup –> Customize –> Cases –> Fields.
- Click New (to add a new field).
- Select Picklist.
Click Next. - Enter field label “Device OS”.
Enter picklist values:
Mac OS
Windows
Linux
iOS
Android
Windows Mobile
Other
Click Next. - Click Next.
- Click Save.
[box type=”info” style=”rounded” border=”full”]There are multiple areas within configuration that you can configure controlling/dependent picklist values. This walk through uses the Field Dependencies menu.[/box]
Make Device Type dependent on Type.
- Setup –> Customize –> Cases –> Fields.
- Click the Field Dependencies button.
- Click New.
- Select Controlling Field “Type”.
Select Dependent Field “Device Type”.
Click Continue. - Click View All
Click Website and then Include Values; Computer and Tablet should now appear yellow:
Click Save. Click OK if prompted for a warning (this warning is telling you that no values will be selectable for mechanical, electrical, etc.
Make Device OS dependent on Device Type.
- Setup –> Customize –> Cases –> Fields.
- Click the Field Dependencies button.
- Click New.
- Select Controlling Field “Device Type”.
Select Dependent Field “Device OS”.
Click Continue. - Configure the values as shown:
Click Save.
Run a Test
Now, create or edit a case. You should see that Device Type is only selectable when the case type is “Website”. Additionally, the Device OS values change according to the Device Type.
[/RCAdmin]
To make Device Type a required field when “Website” is selected as a case Type, go to the Page Layout for Cases, go to Device Type and click on the wrench icon (settings) and check the box for required. Ditto for OS Type.
How would you make Device Type a REQUIRED field (with the red vertical bar to its left) to ensure that if CASE TYPE = Website that one of the values in the the Device Type field is selected before a new case can be created? Ditto for Device OS field once Device Type is selected.
It took a while before knowing how to apply the values but it works according to the steps.
🙂
hi ,John
Here while creating first field as “Case Type”
i don’t see any option Case type in data type …,
am i missing something here,
But ya sure i made that field as picklist data type…
Am i ok to do as current requirements?
Tejal
Great exercise! I had practice control field and dependent field relationship. It this was different and fun because a dependent file also then becomes a controlling field for another dependent field 🙂 Had not tried that before 🙂
Good exercise. Easy to follow.
This was really easy!
Hi John
I am trying to do another scenario similar to the above scenario that I was hoping to get your help on –
I am trying to put a pick list in the account object under the additional information section as follows
EAMS
– Cityworks
– Maximo
I was trying the steps above but was struggling to get it to show up on that section of the page – any help you could give would be great
Thanks
Roma
– Oracle
Not clear what you are trying to accomplish here – are you trying to set up a dependent picklist based on another selection?
Excellent!
I needed this refresher especially on adding to “types”. I got stuck for a while because I hadn’t added Device type and device OS to the page layout.
Very Helpful ,Thanks
Great exercise, like the real world Hands on…. More of this would be good..! Thanks
John,
Previously, we’ve been using custom text picklists for state and country values and had the North American Time Zones set as a custom dependent picklist for leads and converted/created accounts. Pretty straightforward stuff. We recently decided to enable SFDC’s State & Country picklists so we could centrally manage these selections. I’ve been unsuccessful in recreating this feature using the system Country/State/Province codes. What solution would you recommend?
Thx,
Chuck
How does this relationship work between fields? Does the state drive what time zone is selectable?
Can’t the standard state & country fields once converted to picklists create a dependency as the custom fields had previously (haven’t tested this one personally)? You would need to remove any existing dependency relationships first before creating a new one with the standard fields.
I noticed the dependent field for device type is viewable but greyed out unless I select website as the controlling field. I take it the only way to keep the device type field completely hidden rather than just greyed out is to create a custom formula to hide it? (Just don’t like fields shown, greyed out or otherwise, if they’re not being used. Adds clutter).
Thanks!
Correct you would need to use a page layout or another method to hide the field entirely.
Hi John,
It would be great if you describe the pagelayout or “another method” to hide the fields.
I dont think we can do it with page layouts.(or Can we ?? 😉 )
It would really be great if you point in right direction.
You can use a page layout to remove the field entirely – but to have the field conditionally removed based on the selection of another field… that would require visualforce.
Hi John I did everything but when I run the test the type field isn’t there. Device type and device o.s fields are there and I can’t do anything with them
You probably have record types enabled – make sure the picklist values are also selected on the record type for that record.
In the step: Add custom picklist field “Device OS”.
There is a typo in step 4:
OtherClick Next.
Should be :
Other
Click Next.
Thanks Mark, updated.
i have a brand new Developer Edition. The Type field was not on my default new Case Page Layout. You might want to add a step for that?
Done, thanks!