Questions tagged [dependent-picklist]

This tag is used to group all queries about Dependent Picklists

Filter by
Sorted by
Tagged with
0
votes
0answers
3k views

'INVALID_OR_NULL_FOR_RESTRICTED_PICKLIST' Even when the value is present in picklist field

I have created a field of datatype picklist and added some values in it. And checked 'Restrict picklist to the values defined in the value set.' and 'Controlling Field' as Country. The data is loaded ...
0
votes
2answers
33 views

picklist options change depending on previous picklist

I have a requirement to have 2 picklists. The user should select an option in Picklist 1, and based upon their selection Picklist 2 will only display certain specific options. These options should ...
1
vote
1answer
548 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
4
votes
0answers
61 views

LWC @wire order of execution not working for ie11

I have implemented a lightning web component (lwc) that shows a dependent picklist field To load a dependent picklist in lwc I use @wire with getPicklistValues and because getPicklistValues requires ...
0
votes
0answers
16 views

Why Required Mark is not disabled on dependent picklist if no value is assigned?

I have a quick action on case to update few fields of case. Pick1 is controlling field with A,B,C values. Pick2 is dependent picklist with 1,2 values. (A -> 1, B -> 2) both fields are marked Required ...
2
votes
1answer
369 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="{!...
1
vote
1answer
411 views

Opportunity RecordType and Sales Process

If I want a picklist with the Stagename and the Probability, I can use the code below. But how can I get a list of RecordTypes with the Stagenames? public List <SelectOption> getProductList() {...
0
votes
3answers
736 views

Multiselect picklist as Controlling field on Field Dependencies

I have a requirement where Multiselect picklist field to be controlling field on field dependencies for dependent picklist field but this is not possible.Here is the idea. https://success.salesforce....
1
vote
0answers
66 views

REST API - Picklist UI API Error

I have written apex code block to fetch picklist values for dependent picklist fields for a custom object using Picklist UI API for Community Portal users. The request URL looks like this: https:///...
1
vote
2answers
1k views

Winter 19 Flow Dependent Picklist Error

When using the Flowscreen lightning component for Dependent picklists I am encountering an error. The components is configured: Object API Name - the object where the picklists reside Picklist 2 API ...
0
votes
0answers
27 views

Default Value for Dependent picklist field in Salesforce Lightning

How to assign a default value for a dependent picklist field in salesforce lightning . I am unable to assign a default value for dependent picklist field in lightning . cmp <aura:component ...
1
vote
2answers
443 views

Visualforce Search Page - Dependent Picklists

I'm working on building a custom search visualforce page and I've run into a problem. I have added 2 picklists (one controlling and one dependent) as filtering fields. However, when I go to the VF ...
0
votes
1answer
981 views

Dependent Picklist Configuration Not Deploying

I have created a 3 level dependent picklist chain: Reason 1 Reason 2 Reason 3 Where 1 determines 2, and 2 determines 3. The problem is, I have deployed this from our Dev org to our Test org, which ...
0
votes
0answers
18 views

Populate picklist values based on valueset defined in child object

We are struggling with the following new business request: We are using the standard objects Opportunity and Product. Now there is the clear request to define possible market segments for each ...
1
vote
2answers
572 views

Create dropdown list of pricebooks

I'm in the process of creating a variable dependent picklist, where you can select a pricebook from a dropdown and then a multiselect picklist will show the products in that pricebook. So far, I have ...
1
vote
1answer
577 views

C# REST API - Get Dependent Picklist Values

Within one of my Salesforce object, I have cascading picklists where the selection of one picklist displays values for the next level picklist. So I have three dependent picklists. What I would like ...
1
vote
1answer
938 views

How to Change field type from picklist to Text field

I have two picklist fields. picklist1: factory warehouse RS Retail picklist2: factory Address warehouse Address If RS/retails is selected in picklist1 then no dropdown in picklist2 it should be ...
0
votes
2answers
972 views

Field Dependency Dropdown Picklist Grayed Out

I am attempting to create a dependent picklist. I have already watched some tutorial videos and got to the point where my picklist has been created, but the selection box is grayed out, and I am ...
0
votes
0answers
21 views

Metadataservice: Delete only Record Type dependency of picklist

I have a requirement to delete only Record type dependency of a picklist value. Suppose, for R1 record type A,B,C were values accessible of A__c custom field. Now I need to delete A from values under ...
0
votes
1answer
552 views

Make a picklist mandatory when value is selected on another picklist

I want to Make a picklist called "Reason" to be mandatory when the value on another picklist called "Status" equals to decline.How can this be achieved using validations?
0
votes
0answers
141 views

How to filter related contacts list based on account selection from dropdown?

I'm trying to display related contacts list in dropdown based on particular account selected from account dropdown. I can able to display all accounts in dropdown but after selecting an acount how to ...
0
votes
1answer
119 views

How to Build dependent picklists in Lightning Web Components?

I need to control a product Combobox by Pricebook Combobox in Lightning Web Component I've created an LWC that contains two comboboxes: Pricebook list and Product list. I was able to get the list of ...
0
votes
0answers
16 views

In flow, dependent picklist span the entire page unlike a normal picklist

Basically title. Is there a way to get around this? It’s horribly inconsistent.
0
votes
1answer
133 views

Error: top picklist missing

I am using the flow builder to create a three level dependency among three Pick-lists; however, I am getting the following error message(check screenshot too): Error: top picklist missing I am ...
2
votes
5answers
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:
1
vote
1answer
51 views

4 Level Picklist Dependency

I'm trying to set up 4 picklist that are dependent on each other. The idea is this: There are 4 different picklist. Pick1, Pick2, Pick3, Pick4 Pick2 is dependent on Pick1. Pick3 isn't necessarily ...
0
votes
1answer
271 views

Error : Flow : activate Lighting runtime

I have created a flow which contains a Dependent picklist component. When I execute the flow I obtain this error (screen 306). However, I have activated the permission, so I don't understand where ...
0
votes
1answer
118 views

Flow Dependent Picklist Values

I'm sure this is a simple fix, but I cannot figure out how to store the selection from a Dependent Picklist component. I am using just a basic Opportunity with the StageName and a child picklist, ...
1
vote
1answer
51 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, "...
0
votes
1answer
224 views

extracting Field dependency metadata using SOQL etc

We are migrating from salesforce to another system. We need to build field dependencies for dependent picklist fields in salesforce in the new system as well. Can we extract field dependencies from ...
37
votes
3answers
5k 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 ...
0
votes
0answers
46 views

Can i create Dependent picklist in flow where controlling picklist is “Screen component Picklist made with choice resource type”?

I have created flow screen, and created 1 picklist from screen component and added choice resources as picklist values. Can I create dependant picklist for above picklist? eg. Screen have picklist ...
0
votes
1answer
26 views

How to Enable all state list for State and country picklist

We were using the state and country text field in address. Now, we have enabled the standard state and country picklist. But the state picklist is shown for only 9 countries. Eg. USA has state ...
0
votes
2answers
139 views

Picklist values not populating for dynamic rows in lightning component

I have a lightning component that I am trying to add dynamic rows and delete them and save the records on Submit. I asked this question, and I am able to retrieve picklist values without additional ...
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
2answers
223 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'...
0
votes
1answer
19 views

Trigger change in PickList4.js from Salesforce

How can I trigger a picklist change event inside salesforce: We have the following code : <apex:outputPanel id="dynamicRerender"> <apex:repeat value="{!strings}" var="...
2
votes
2answers
713 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....
1
vote
1answer
122 views

Get field API Name of dependent field if picklist has dependency

Is there a way to retrieve via Schema.DescribeFieldResult field that sets dependency on picklist fields that have isDependentPicklist() true? For example: If my field Field1__c (picklist) has a ...
3
votes
1answer
89 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. ...
0
votes
1answer
1k views

Is there any way to make a text field dependent on a picklist field?

I have one picklist field where 'Other' can be selected. I want to create a text field that is dependent on this picklist where the user can then type in this other reason. I know the mechanics of ...
0
votes
0answers
38 views

more than 2 dependent pick-lists

I am aiming for creating a dependency among the following pick-lists: Continent Europe Asia Africa Country Spain Netherlands China Korea Morocco City Madrid Barcelona Rabat Casablanca Beijing Macau ...
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 ...
1
vote
1answer
35 views

Field Dependencies with Repeat Tag

I am new to the visualforce development. Right now i am going through developer guide. I am little confused about apex: repeat tag Dependent Picklist Considerations • You can mix controlling and ...
0
votes
1answer
29 views

Field to pick-list selection

Hi I need a favor regarding pick-list selection. for example: I have a Location object. In Location object I have (County name) field. I created county 1, county 2, county 3. And I have another ...
2
votes
2answers
197 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> ...
1
vote
1answer
388 views

Dynamic Multiselect Picklist Display Multiple Selections

I have a record that has a multiselect picklist field. I want to display on the VFP all of the different selections. When I load the page with the selectlist or selectcheckboxes, the values do not ...
2
votes
0answers
117 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
784 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 ...
0
votes
1answer
206 views

Dependent picklist values disappear after Visualforce page submit

I have a Visualforce page with a controlling picklist field and a dependent picklist field. Both fields are required entry during record creation, but instead of using the required parameter on apex:...