Questions tagged [dependent-picklist]

This tag is used to group all queries about Dependent Picklists

Filter by
Sorted by
Tagged with
59
votes
8answers
36k views

Get lists of dependent picklist options in Apex

I have a pair of dependent picklists. In Apex code, how can I determine what options are valid in the dependent field for each option in the controlling field? I've tried using getPicklistValues(), ...
36
votes
3answers
4k views

How do I get the intersection of RecordType and Picklist values inside Apex?

Context This question has been asked before in the past and I've found several discussions of it here on StackExchange and elsewhere (links below to pages I've found in my research). So far I'm not ...
14
votes
2answers
7k views

Picklist Values in Dynamic Lightning Components

Is there an out-of-the-box solution to populate record-type specific picklist values when creating a picklist dynamically (in a Lightning Component) that references an sObject field? At this point ...
13
votes
5answers
4k views

What are the best practices for managing changing picklist values in managed packages?

One of the issues that we always see when creating new releases of our managed package is that new or changed picklist values don't deploy when someone upgrades our app using a new release that we ...
11
votes
2answers
4k views

Are dependent picklists supported in Lightning Components?

It's possible to define dependent picklist in the setup and the are supported out-of-the-box in Visualforce. Are they also supported in Lightning natively? Is it on the roadmap to support them soon? ...
10
votes
2answers
1k views

Overwrite Style from dependent picklist

I have a style that I want to keep but it looks like the dependent picklist is only loaded after the controlling picklist has been picked, leaving some really strange Styling. I used a wrapper like ...
8
votes
6answers
7k views

Dependent picklists - Controlling field not on the page layout

I want to be able to have the controlling field of a dependent picklist not show to the users, I am updating this field using workflow. From Salesforce docs Page layouts Make sure controlling fields ...
8
votes
1answer
3k views

Does force:inputField support dependent picklists?

Let's say I have two picklists bound to force:inputField elements like so: <force:inputField value='{!v.obj.Database__c}' aura:id='database'/> <force:inputField value='{!v.obj....
7
votes
3answers
5k views

Picklist dependent on 2 controlling picklist

I have 3 picklist in an object Test1, Test2, Test3 1. Test2 is dependent on Test1 2. Test3 is dependent on both.. Test1 and Test2 I want to have Test3 picklist showing values accordindly. i.e if U ...
5
votes
4answers
1k views

Dependent Picklists - StyleClass attribute doesn't work

Situation I've implemented a dependent and a controlling picklist field. <apex:inputField value="control__c" styleClass="abc" /> <apex:inputField value="dependent__c" styleClass="def" /> ...
5
votes
2answers
543 views

ReRendered form with wrong data on inputFields dependent picklist

I have a Visualforce Page for QuoteLineItem multiple edit. It works as a shopping cart: the top section has the items already in the Quote, and in the bottom there are the available products from the ...
5
votes
1answer
1k views

How to filter standard picklist based on formula field?

I am trying to filter the standard Type picklist on a standard object based on a field on the connected Account (if it is connected). Furthermore, this picklist has to be filtered on the initial ...
5
votes
2answers
60 views

Codes and Values

We have clients that use a lot of codes in their day to day activity. Eg: Take a look at the UK Government Common Basic Dataset: https://www.gov.uk/government/publications/common-basic-data-set-cbds-...
5
votes
1answer
212 views

How are State and Country Picklist values encoded/updated in the rendered page?

We have a bug where the state picklist does not update when the country picklist is changed in one page (with the feature working in other pages). There are no JavaScript errors in the console. To ...
5
votes
1answer
3k views

How to perform dependent picklist operation in Visualforce page

I have a requirement to display the set of questions in VF Page. The set of questions will be available in Custom object. I need to display the question field and answer field for the user to answer. ...
4
votes
3answers
934 views

Update Dependent Picklist when created by API

We have a process where products are created in another system and then are pushed into Salesforce via the API. One of the fields that is coming over is a picklist that several other picklist fields ...
4
votes
1answer
2k views

How to present state and country picklists with dependency logic in a Lightning Component?

It's not too hard to present the Contact/Account state and country picklists themselves, but the dependency filtering where when you select "United States" as the country only the 50 or so relevant ...
3
votes
2answers
166 views

Is it possible to get ui api Picklist Value Collection response body in ltgn comp js (for pcklst dependencies)

Is it possible to access the picklist value collection response body in a custom component js using a built in component? I need access to the dependent picklist values and their validFor property. I'...
3
votes
1answer
1k views

Maximum values in dependent picklist

the maximum values in a picklist is 1000, but which is the maximum in dependent picklist? If I add 1000 values the dependent field is disabled
3
votes
1answer
43 views

Identifying the controlling picklist of a dependent picklist

Is it possible to identify the controlling picklist for a dependent picklist in Apex. Currently, I am using the DescribeFieldResult class to get information on object fields; type, name, length, etc. ...
3
votes
1answer
191 views

Decode dependent picklist validFor mapping in Javascript

Similar to this question, but instead of in C#, I need it in Javascript: Get lists of dependent picklist options in Apex I already have the list of both the dependent values and the control values. ...
3
votes
2answers
2k views

default a dependent picklist value if there is only one value

how can i default a dependent picklist value if there is only one value? for example, i have controlling picklist value of A,B,C and dependent picklist value of 1,2,3,6,7,8 A - 1,2,3 B - 6 C - 7,8 ...
3
votes
1answer
1k views

Drop-down options change based on selection

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 ...
3
votes
1answer
779 views

programmatically selecting picklist item dependent value

I am writing a program which reads data from CSV text files and attempts to upload data into my organization's Salesforce account. I am writing this console application in C# and with my organization'...
3
votes
0answers
810 views

Multiselect Picklist with field dependencies

I have an object, for example Student. In the Student object I have a multiselect picklist, that multiselect picklist having all country names. I have another picklist in the Student object having all ...
3
votes
0answers
271 views

Create dependent picklist without grey out

I created some dependent picklists in my custom object and and I am trying to figure out how to display them in my vf page without grey out of the dependent ones and also increase the size of the ...
2
votes
1answer
490 views

Fetch dependent picklist values depending on record type

I have a two picklists PL1 and PL2. PL1 is controlling picklist and PL2 is dependent picklist. I want to fetch values of PL1 in Apex depending on recordTypes in Apex method, which I already have ...
2
votes
4answers
2k views

How to add picklist (Field dependencies) for custom objects

I want to add picklist for a custom object I have created. When I navigate to Field dependencies for that custom object and click new the Controlling field and dependent field drop down list are empty....
2
votes
1answer
1k views

Alternative approach to multiple dependent picklists

Within service cloud, I have a requirement to allow for case categorization. I currently have a hierarchy of 5 dependent picklists: Product Product Area Category ...
2
votes
2answers
3k views

How to Auto populate Dependent Picklist Value based on the value selected in Controlling Picklist

I have 2 Picklist fields on Opportunity Object Country(Controlling) and Geography(Dependent).Based on the value selected in Country Picklist,it auto populates the value in Geography field.This is ...
2
votes
1answer
59 views

Merging dependent picklist into Visualforce email template?

Is there a limitation merging dependent picklist values into a VF email template? I have a picklist (Case.Denial_Reason__c) that is controlled by Case.Status. I can merge values such as status or ...
2
votes
4answers
1k views

Creating dependent picklist on flows

In Flows, is it possible to create a dependent picklist inside one screen with out using two screens? ex:
2
votes
1answer
1k views

How can I create a dependent pick list on a visual flow page?

I have 2 pick-list fields on an object, that are dependent to each other. How can I create such connection on a visual-flow screen?
2
votes
1answer
3k views

how to get status and category value based on zone name in idea object salesforce

This question only for users, who have knowledge about Idea object in salesforce For user who don't know about Idea object, I can't help . how to get status and category value based on zone name in ...
2
votes
1answer
2k views

manipulating Field Dependencies with Metadata API

Is it possible to manipulate Picklist's Field Dependencies with Metadata API? If so, is there any reference or example out there?
2
votes
2answers
1k views

Is it possible to add the custom style for Dependent Picklist

Is there anyway to add the custom style for dependent picklist in viusalforce page? I have created the visualforce page with custom style dependent picklist . But it works for only contolling field ...
2
votes
2answers
538 views

RecordTypes, Dependant Picklist values within Lightning Components

We have built a Lightning Component for displaying OrderLines__c (custom object). Since we need to utilize picklist values we could not use the lightning:datatable. I found a great guide on sfdcmonkey....
2
votes
1answer
609 views

problem creating a dependent picklist

I want a user to be able to firstly select a value from a picklist and then to be able to select values in a lookup. For example, if the user selects the value "campaign" from the lead source ...
2
votes
1answer
374 views

Formula with depending picklist

I have a child object depending on Accounts. I am using the custom "type" field in accounts an have a depending picklist called "subtype". No all "types" have assigned "subtypes". I want to pull a ...
2
votes
1answer
2k views

Creating a VF page dependent picklist error?

I am creating a VF page, on that we need to have 13 picklist fields and 13 dependent picklist fiields. We have created 10 picklist fields and 10 dependent picklist field. For creating 11th dependent ...
2
votes
0answers
93 views

Why does the DependentPicklists class returns empty Map when trying to output Country and State picklist?

We are implementing the DependentPicklists class found in another answer on this site. Our org has State and Country picklists enabled, so we are trying to get this to work using the Contact....
2
votes
1answer
413 views

Does Path support editing of dependent picklist field?

I've added a dependent picklist field to Path's key fields. However, it displays only the current value and --None--. Sub-Stage field when edited in the path: Sub-stage field when edited from ...
2
votes
1answer
343 views

Visualforce 'onChange' DOM event not firing when dependent picklist changes to default value

I have a VF page where several field's required attribute is dynamically tied to the value selected on a picklist: <apex:outputPanel id="idAccountField"> <apex:inputfield value="{!...
2
votes
2answers
547 views

Workaround to dependent multiselect picklists in Visualforce Pages

We've come across an issue wherein the dependent multiselect picklist (Deliverables__c) field we have on one of our custom objects (Task__c) doesn't show up correctly in our visual force page when ...
2
votes
0answers
105 views

How to map states of usa with cities in salesforce

Currently I have a requirement to map all the states of usa with respect to their cities. I know it can be made with the help of controlling picklist but is there any option to make the process ease ...
2
votes
2answers
276 views

Dependent picklists work in the browser but don't work in Salesforce1

I have a series of dependent picklists on the Lead create page, with field dependencies set up on them. For the same user, these dependent picklists populate with the correct values based on the value ...
2
votes
2answers
165 views

Picklist using Dynamic Apex

How to display dependent pick-list fields and their values using dynamic apex in visualforce page. I need to have multiselect hence i am using the below code - public List<SelectOption> ...
2
votes
0answers
56 views

Dependent picklists in components conflicting with each other

Imagine an object called Location that has a Country, State, and City dependent picklists. You select a Country then the States are populated, you select a state then the Cities are populated. Now ...
1
vote
1answer
32 views

What is the validation rule for a text field that shouldn't contain data if the correct picklist value has been selected first?

I created this Validation Rule that when a user selects Yes from the, Any_other_liens_filed_against_you__c picklist but tries to save the record without completing the text field, "...
1
vote
1answer
450 views

Dynamic Dependent Picklist in Pardot

How can we create dependent picklist in : Pardot Forms Prospect With the same feature present as a dependent picklist in Salesforce CRM