Questions tagged [picklist]

A picklist is a field type in Salesforce that contains a list of values from which a user may select a value. A picklist is represented as a drop-down box in the UI.

Filter by
Sorted by
Tagged with
0
votes
0answers
16 views

I have a new set of picklist values based on the record types of a custom object. How do I enable them 'selected' by default when the org is upgraded?

I have a new set of picklist values based on the record types of a custom object. How do I enable them 'selected' by default when the org is upgraded? My custom object has different sets of picklist ...
0
votes
1answer
32 views

Having two controlling field in a object

I have a few field object which is country, weight and postage rate. Each of them is a picklist data type. What I want is, when the user chooses country and weight, it will affect the postage rate. ...
0
votes
2answers
43 views

how can I avoid a for loop when searching against a list in a picklist field

I need to search for a list of strings and match against a picklist field. So far, the query below only works when there is only one string in the query string. Appending more strings does not work ...
1
vote
0answers
14 views

Multi-picklist width collapses in Lightning with SLDS component loaded

I'm converting an org to Lightning and have this markup in a Visualforce page: <apex:inputField value="{!classInstance.opportunity[field]}" required="{!IF(isSaveOnly,...
0
votes
0answers
10 views

Using user language picklist in custom object field

I want to add a field on Opportunity to set the primary language for the customer. Is it possible to use the same picklist as provided in the "Language" field of "User"? What is ...
0
votes
2answers
27 views

Not able to update picklist fields as unrestricted from restricted

The option “ Restricted picklist to the values defined in the value set “ greyed out. I need to unrestricted this field. I am not sure why it is greyed out? How can I unrestricted this field now?
0
votes
1answer
23 views

Update Custom Picklist Values Translations via MetadataService

I have a piece of code that allows me to update custom picklist field values: public static TM_EComUtils.genericResponse addPicklistValuesViaMetadata(String fieldAPI, String sObjectAPI, List<String&...
0
votes
0answers
13 views

How to get translated picklist value of a picklist field in LWC [duplicate]

Is there any standard capability using method/Api/Wire to get the translated value as per user language in LWC. Regards Stay Safe
3
votes
1answer
33 views

How to get Picklist color value (hexadecimal value)?

Assuming we select for each picklist value a specific color (ie not dynamic assignment) how to query the hexadecimal color value in Apex/soql ?
0
votes
1answer
24 views

Issue when using ISPICKVAL in formula

I have read the documentation and I am aware that picklist values need to use ISPICKVAL in the formula I want this formula to show that If the status is 'A' or 'B' it will show the days (in numbers) ...
0
votes
1answer
23 views

Stage Picklist on Opportunity Not Shown by LWC

I am trying to show stage picklist values of opportunity object through lwc but iit shows error Invalid reference Opportunity.Stage of type sobjectField in file lwcPicklistOppor.js here is my code <...
0
votes
1answer
34 views

VS Code drops leading zero in picklist metadata values

I'm having picklist metadata problems with VS code and a regular sandbox (not a scratch org). I'm using source format with the sandbox. I have a picklist where some values have leading zeros, e.g. &...
1
vote
1answer
20 views

Is it legitimate to assign a text value to a picklist field

I know it is possible to dataload a text value that "happens" to match a particular picklist value into the picklist field. The field looks no different than if you actually selected the ...
0
votes
0answers
24 views

How to restrict user from selecting previous values in picklist Journey

Hi We have a unique scenario in the Picklist value selection for the users. I have already checked on this earlier post from salesforce stackexchange Trigger to validate selection of Pick-list values ...
0
votes
0answers
15 views

Get Current Picklist Label in Trigger

I have on a CPQ quote a country picklist and a text field for the country name. I want to fill the country name field with the picklist's label whenever it changes, that is, the displayed name, not ...
0
votes
0answers
10 views

How can I pass the selected value from a picklist to the controller to filter records?

I need your help... I have a Visualforce page that displays a select list with the name of records from a custom object, these as an option each. Visualforce: <apex:pageBlockSectionItem &...
1
vote
1answer
56 views

How to add Dynamic Picklists to your LWC Design File for FlowScreen?

What is the best way to add dynamic values as datasource to FlowScreen components? Is there a way? Assuming that it's not supported, what would be the best alternative to keep the code consistent. I ...
0
votes
0answers
11 views

Set value from collection variable to the choices in picklist field using Loop

I am using an apex action that returns a list<list> which I am storing in a simple Collection variable. I want these string values to be acted as values in a picklist field (dropdown) that is ...
0
votes
1answer
31 views

Error while adding new value in record type and updating metadata

I habe a code that should add new picklist value in all RecordTypes but after run it i get an error in method updateMetadata "System.CalloutException: Web service callout failed: WebService ...
1
vote
1answer
45 views

Multi-select pick list in a screen flow

I created a component that would make a multi-select pick list on a screen flow. It works except you can't assign it to a variable that can be referenced when moving on to the create records part of ...
0
votes
0answers
13 views

Picklist required UNLESS other picklist is a specific value

I know how to make a field required using Validation Rules, and right now I have the following: ISNULL(TR1__Language__c) However -- if I want to make that field NOT required if a different picklist is ...
0
votes
1answer
17 views

Cannot remove global picklist after deletion picklist

I am trying to delete a global picklist but this references a deleted picklist. How do I resolve this?
0
votes
1answer
27 views

How to set a default value on Lightning Component Option Select without changing the order

Can someone help me with this line of code as I am still new to Development and learning it. On the below lightning component code, the default value shows as "Call" and now the business ...
1
vote
1answer
30 views

Visualforce page with custom controller to create filtered picklist and list view

I'm trying to create a public facing visualforce page that doesn't require login. Users will be able to select a campaign of a specific record type, and then select an opportunity where the Primary ...
0
votes
2answers
16 views

Constrain child picklist based on parent picklist

I have a Case object which has 'Category' picklist with values 'Plumbing','Electrical' etc to handle the issue customer is reporting. Need to have a child object 'Parts' and it needs a Parts Picklist ...
1
vote
0answers
31 views

How to filter records according to a specific value of a picklist in visualforce? [duplicate]

I am in a situation where I need to create a picklist with records of a subject in a visualforce page, and based on the selected value, show the products related to it. How can I achieve this? I get ...
0
votes
0answers
19 views

How to correctly implement the selection of an account in the picklist so that it is correctly recorded in the new contact?

I have a form to add a new contact and am having trouble recording if I fill in the "Account" field. If you do not fill it in, then the new contact is added to the database without any ...
3
votes
0answers
49 views

When to use FieldDescribeOptions.FULL_DESCRIBE in SObjectField.getDescribe(options)?

Background Playing around with the SObjectField class has led me down a rabbit hole in wondering why and how I can make use of the getDescribe(options) method where options is a FieldDescribeOptions ...
0
votes
1answer
17 views

Problem with aura and JS controller

I have a little problem. I have a simple program that gets a value from picklist , and using this value my program must show all values from the database Thats my code COMPONENT <aura:attribute ...
0
votes
1answer
15 views

Mapping Webform picklist values to different values on Picklist in Salesforce

I'm not a developer by any means, but better want to understand what is feasible out of the box with Salesforce. Scenario is I'm thinking of a web form that will act as a landing page for customer ...
0
votes
1answer
25 views

How to add `Type` field to `Event` object

I am trying to add Type field to the Event object ( https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_event.htm ) object. I have tried the ...
0
votes
1answer
47 views

Validation rule to prevent change if field has specific value

I have a situation where I want to prevent (some) users from changing a picklist field once it has been set to a specific value. I'm trying to create a validation rule that fires if the field is ...
3
votes
1answer
25 views

Error when generating package version with values in account standard picklist

I have a couple of values on the Account's Type field in a managed package. A couple of days ago I generated a package version successfully, but now when generating a new version I'm getting this ...
0
votes
0answers
10 views

If I have a record type with picklist fields inside, how can I extract the enabled and non-enabled values ​from them through a soql query? [duplicate]

If I have a record type with picklist fields inside, how can I extract the enabled and non-enabled values ​​from them through a soql query?
0
votes
1answer
33 views

How check with SOQL if a picklist value is available or not for a specified record type

How check if a picklist value is available or not for a specified record type ( through SOQL)? Thanks in advance
0
votes
1answer
22 views

How can I create picklist field on a object, where the values/options of picklist should be the fields of another object?

I am new to salesforce and I have been trying to find answer for this requirement related to our application. Basically I have a Custom Object Field_Config__c, on which I want to create a picklist ...
0
votes
0answers
30 views

Tooling Api - bypass the Duplicate Label Error

I'm trying to update a global value set, using Tooling API. When I'm trying to insert a new value - if its label contained already in my old values or in my list which I'm about to upsert, Its throw ...
0
votes
0answers
20 views

Country and state picklist with lightning web components

How can I capture the country and state picklist in lightning web component picklist input? Please help me to give some guidance. Thanks Sunil Kr. Gupta
0
votes
0answers
7 views

How Standard component picklist value change event fill the textbox values?

BankTransaction(detail) and BankAccount(master) has master-detail relation, I want the transaction standard page when creates a new record, bank-Account picklist change event fill daily-limit and ...
0
votes
0answers
122 views

LWC Datatable Picklist Dropdown is hiding below

I have been trying so long to solve this issue. I am extending the LWC native datatable with picklists. The dropdown is hiding below in the bottom and is not properly visible. Please suggest me a way ...
0
votes
2answers
77 views

SFDX picklist raising Duplicate Label error

We have some picklist values (in various places both as part of a custom field and as a global picklist value set) that look something like this: <customValue> <fullName>1</fullName&...
0
votes
0answers
19 views

Dependent Picklist Values not fully available

I have an aura component and it is designed to be used with case. The issue is when user opens the form and changes a controlling picklist ("Type") the dependent picklist ("Sub-Type&...
0
votes
1answer
47 views

Unmanaged package missing standard field picklist while packaging

While creating a unmanaged package from sandbox, some custom stuffs are not deployed. a) Its missing order status custom picklist values. b) Custom Action link and buttons are not set by default to ...
0
votes
1answer
33 views

How to manage picklist values of a field in Salesforce?

Here is the scenario where I am strucked: In OSR object, there is a picklist field 'Status'. In this field, I have 5 values(Not Submitted,Open,In Progress,Completed,Rejected) but I want to display ...
0
votes
1answer
451 views

Picklist values from Apex List LWC

Looking for some examples of how to pass values from Apex List,generated in Apex class, to LWC picklist. My picklist is : <lightning-combobox name="progress" label="Object" ...
1
vote
1answer
126 views

Restrict Picklist values without record type

The situation is as follows: I have a picklist on Leads derived from a global value set. However, I don't want to show all value from the global value set. Is it possible to achieve this without ...
4
votes
2answers
103 views

When did PicklistEntry label become null?

Used this code to get PicklistEnry list from field and get Label from it: DescribeFieldResult res = Organization.getSObjectType().getDescribe().fields.getMap().get('OrganizationType').getDescribe(); ...
0
votes
2answers
83 views

The ShippingStateCode field contains 21, which is not an available state

I changed some integration values from the country / state pick list: When I try to insert a record by integration, I get the error: "The ShippingStateCode field contains 21, which is not an ...
0
votes
0answers
28 views

Choose what set of values a picklist draws from based on another picklist

here's our situation: We want to associate an Account with multiple counties throughout the US (and these counties could come from multiple states) Ideally we'd have one giant multi-select picklist ...
0
votes
1answer
78 views

(Sobject) '{!Record.Field__c}' is a picklist field.'Test' is an invalid field value

Recently I have added a new value for a global value set that is being used in a picklist field for an sobject. The field is required, restricted, and has the new added value as the first and default. ...

1
2 3 4 5
20