3

I have a requirement where I need to have 3 dropdown and when I click USA, In the second dropdown I need to have relevant District Options and when I select Any particualt District I need to get respective Territories.

Please advice me the model and what I need to do to achieve this.

6
  • 1
    Dependent Picklists? About and Defining Dependent Picklists Sep 26, 2013 at 7:16
  • Three level dependent picklist would do for you Sep 26, 2013 at 7:38
  • country will be controlling field for district and for Territories district will be controlling field Sep 26, 2013 at 7:44
  • 2
    @mast0r - could you write up an answer around dependent picklists?
    – metadaddy
    Sep 26, 2013 at 18:24
  • @metadaddy Done! Sep 27, 2013 at 6:25

1 Answer 1

2

For this approach you need to use a standard feature of salesforce called dependent picklists.

A dependent picklist is a custom or multi-select picklist for which the valid values depend on the value of another field, called the controlling field. Controlling fields can be any picklist (with at least one and fewer than 300 values) or checkbox field on the same record.

To define dependent picklists: open your object settings page: click Create -> Objects, and select one of the custom objects in the list:

enter image description here

Scroll down to the "Custom Fields & Relationships" section and click the "Field Dependencies" button:

enter image description here

Then click on "New" and use the field dependency matrix to specify the dependent picklist values:

enter image description here

Then save your settings and you're done!

1
  • Thanks for the reply. I need to manually include values using dependent picklist which i dont want to do. Is there any ways where we can get dynamically , May be using schema for country,region,district and territory as Different SObjects
    – Arun SFDC
    Sep 27, 2013 at 10:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.