Fields: Scenario 2 Solution

[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.
  1. Setup –> Customize –> Cases –> Fields.
  2. Click on the Type field.
  3. Click New (next to Picklist Values).
    Enter “Website”.
    Click Save.

Ensure Type field is listed on the case page layout.

  1. Setup –> Customize –> Cases –> Page Layouts.
  2. Click Edit next to Case Layout (or click Page Layout Assignment to determine which layout is assigned to your profile).
  3. Drag  the “Type” field to page if it is not already present.  Click Save.

Add custom picklist field “Device Type”.

  1. Setup –> Customize –> Cases –> Fields.
  2. Click New (to add a new field).
  3. Select Picklist.
    Click Next.
  4. Enter field label “Device Type”.
    Enter picklist values:
    Computer
    Tablet
    Click Next.
  5. Click Next.
  6. 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”.
  1. Setup –> Customize –> Cases –> Fields.
  2. Click New (to add a new field).
  3. Select Picklist.
    Click Next.
  4. Enter field label “Device OS”.
    Enter picklist values:
    Mac OS
    Windows
    Linux
    iOS
    Android
    Windows Mobile
    Other
    Click Next.
  5. Click Next.
  6. 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.

  1. Setup –> Customize –> Cases –> Fields.
  2. Click the Field Dependencies button.
  3. Click New.
  4. Select Controlling Field “Type”.
    Select Dependent Field “Device Type”.
    Click Continue.
  5. 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.

  1. Setup –> Customize –> Cases –> Fields.
  2. Click the Field Dependencies button.
  3. Click New.
  4. Select Controlling Field “Device Type”.
    Select Dependent Field “Device OS”.
    Click Continue.
  5.  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]

25 thoughts on “Fields: Scenario 2 Solution”

  1. 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.

  2. 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.

  3. 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

  4. 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 🙂

  5. 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

  6. 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.

  7. 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

    1. 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.

  8. 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!

      1. 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.

  9. 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

Leave a Reply