Questions tagged [dependent-picklist]
This tag is used to group all queries about Dependent Picklists
178
questions
1
vote
0answers
42 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:///...
0
votes
0answers
22 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 ...
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 ...
0
votes
0answers
20 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
0answers
84 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
86 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
14 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
151 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 ...
1
vote
1answer
45 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 ...
1
vote
1answer
45 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
85 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, ...
0
votes
0answers
35 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
105 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 ...
0
votes
1answer
17 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="...
1
vote
1answer
111 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
84 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
963 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
37 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
...
0
votes
1answer
128 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 ...
1
vote
1answer
31 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 ...
1
vote
1answer
352 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
109 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
705 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
2answers
649 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....
0
votes
1answer
189 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:...
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 ...
2
votes
1answer
613 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 ...
0
votes
1answer
197 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 ...
0
votes
2answers
1k views
how to load a dependency pick-list values by using force:recordData
I have created a custom component for creating, edit records. in that i have a dependency pick list values. now i want to display values on load of record.here is my code. please correct me.
...
0
votes
1answer
255 views
Dependent picklist error: “Validation Error: Value is not valid”
I have a table, where each Wrapper instance corresponds to each row of the table. On select of Project - tasks of selected project should be rendered.
If i'm trying to pick task and add a new row VF ...
3
votes
2answers
207 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'...
1
vote
0answers
146 views
Kanban View and Required dependent picklist
We have a picklist called Reasons. It is a required field.
We use it for determining reasons Won and Lost. The values for each of these are different so we use standard dependency between Stage and ...
1
vote
1answer
40 views
Can I set a Dependent Picklist to an unavailable value by Field Update?
I don't want a user to manually set the Status to "Complete". I want to force them to press the Approve button - and let a Field Update in the Approval Process set it.
But I want the user to be ...
0
votes
1answer
392 views
Action onchange for two dependent picklist in lightning:recordEditForm
I have two picklist fields, Country(controllling picklist) and State(dependent picklsit). State should change based on Country value for my lightning page.
As of now this is happening, but State ...
3
votes
1answer
255 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. ...
0
votes
1answer
584 views
How do I retrieve Country and State Picklist Values (AddressSettings) via API?
How do I get a dependent list of States by Country from Salesforce via API?
Our Use Case is: We need dependent Picklists on an integrated 3rd party web platform we intend to pass the returned ...
1
vote
2answers
2k views
Get picklist values of a field which is a controlling as well a dependent field
We are trying to retrieve the dependent picklist values of a picklist field using answer which work fine if they are only controlling field and dependent fields one level.
But if the controlling ...
1
vote
1answer
506 views
Named credentials for the same salesforce Org using Oauth - not working
Basically I want to use the UI-API to get dependent picklist values to use in custom lightning page. To access the ui-api, I need to make rest callout from apex.
So I created a connected App and Auth ...
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 ...
1
vote
0answers
123 views
Value picklist set - how to make them dependant picklists?
I have converted a picklist to Global Valueset picklist, but the 'Controlling' option is now missing from the field.
Is that by design?
Can fields that are based on Global Picklist (Value sets) not ...
-1
votes
1answer
306 views
Unable to get the selected picklist value in VF page
We have a web2case form (Screen shot attached below) and In the form we need to show/Hide loa reason field based on the values in Category and sub- category picklist fields, This functionality is not ...
0
votes
1answer
747 views
Picklists validFor attribute
So i am using SFs Rest API to fetch various data from SF, i am fetching all values for a picklist. Problem is that picklist has dependacies, so half of the values either belong in one category, or ...
0
votes
1answer
35 views
How to server-side exclude all but 1 specific picklist value from a record creation visualforce form?
I have a visualforce page that accepts inputs and creates an Opportunity...
In Standard Opportunity creation page layouts, there are many options for StageName, but in visualforce, I need to display ...
0
votes
1answer
127 views
Global dependent field
I have in object two field Type__c and Phase__c, both are picklists, there is a field dependency in these fields. Type__c is the controlling one and Phase__c is the dependent. I want the same exact ...
0
votes
1answer
917 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
1answer
231 views
Dependent picklists not working in VF Component
I have a VF page which uses a custom controller SearchController.
The VF page a has component TempCmp.
In the component TempCmp, I am trying to use dependent picklists using apex:inputField.
It ...
0
votes
1answer
36 views
refer 1st child object from 2nd child object through parent
I have a requirement in which i have 2 child objects:Agreement__C & Payments_Due__c and parent object: Policy_Holder__c.Now i want to create formula field on picklist so that i can refer ...
0
votes
0answers
35 views
Visualforce Input Picklist from Child Object
I have a visualforce page to generate a OpportunityLineItem.
It is launched from the Opportunity page.
I want a picklist for users to enter a custom field Product_Type__c.
The Opportunity is the ...