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
4
votes
1answer
2k views

help text when mouseover on picklist values

I have a requirement for the community portal. It says that for picklist fields, when the user is checking the available options in the piclist, when the user mouse over each one of the values, the ...
4
votes
2answers
4k views

Picklist value determined by formula

Ultimately I'm looking to create a dashboard for accounts in Red/Yellow/Green criteria based on the trend of rolling 10 week sales. I was easily able to create a text formula field to assign a text ...
4
votes
1answer
1k views

Order of values in a multi-select picklist is not consistent

I added a value to a multi-select picklist field. Then I reordered the value to fit it in the list. After this I opened a record of this object and added this new value. When looking at it in the ...
4
votes
1answer
106 views

The picklist field in the VF form is not showing up in the Confirmation page and getting inserted incorrectly in Order Detail page

I have developed a VF page form for our customer to place order through form, Here we have a option for them to selcect the First and Second reminder day and time . Please find the apex logic: ...
4
votes
2answers
1k views

Visual Workflow: Creating Choices from a Collection

I'm creating a visual workflow and trying to add a dynamic dropdown. Through a loop that looks up records in one field based on parameters passed in the URL, I've saved the values into a collection ...
4
votes
2answers
633 views

Retrieve Translated country picklist values

I wanted a Metadata API to get the Spanish translations of Address Country picklist. Using Translations type or Address doesnt help me get the values.
4
votes
1answer
2k views

toLabel() in aggregate query

I am using the toLabel function in an aggregate query, but it doesn't return the translation of the picklist value. I have changed the language of the user to Dutch and executed the following query: ...
4
votes
1answer
6k views

Validation rule to check picklist list values is not working if more than one word in picklist value

I have a validation rule on Custom object which validates that if Status != Draft, it should not allow the user to change the employee. It works fine all the values which has single word like ...
4
votes
1answer
114 views

DX standard pick-list values in unlocked package

We have certain parts of our org metadata that we can't put in an unlocked package because they are dependent on standard pick-list values (i.e. opportunity stage). Is there a way to put standard ...
4
votes
1answer
750 views

State and Country picklist Scanning in apex

I want to check if state exists or not with a country in State and Country Picklist feature supported by Salesforce. I want to do this in Apex. How can I do this?
4
votes
1answer
690 views

Default states missing when state and country picklists are enabled

I've had the "state and country picklist" feature enabled in a production org today. The documentation says: In this beta release, 239 countries are provided by default, as well as the states and ...
4
votes
1answer
176 views

Predefined Field Value for Picklist

I created an Update Record quick action. Inside the quick action I am trying to update one field which is a picklist field. The picklist field have these options: Item 1, Item 2 and Item 3. I want to ...
3
votes
3answers
3k views

Picklist with different value and name

Is it possible to create a custom picklist field with different value and name. Eg on the page layout Orange,Banana value saved in db 0,1. Thanks
3
votes
2answers
325 views

How can I ensure that a field is blank for some account types, and mandatory for others?

I have two picklist fields: Customer Management Account Type If Account Type = "Client" or "Client - Group Contract", Customer Management must not be left blank. If Account Type = "Prospect" or "...
3
votes
1answer
6k views

ANT deployment of custom field fails - Error: Property 'picklist' not valid in version 39.0

I'm trying to migrate new custom fields to a sandbox using the Salesforce Migration Tool (ANT). Two of the custom fields are picklist fields. And these two fields are causing the error: Error: ...
3
votes
2answers
2k views

Image as value of picklist

I have a requirement where we need to show image as value of picklist. Is it possible in Salesforce ? (either via standard picklist functionality or apex)
3
votes
3answers
484 views

multipicklist values order changed when copied over to another record

I've a multi-picklist field called SegmentA(A,B,C,D) on ObjectA. Also, another multi-picklist field called SegmentB(A,B,C,D) on ObjectB. Values in both the multi-picklist fields are same. Selected ...
3
votes
2answers
4k views

Read Picklist value's Label from record

I have a picklist field say Partner with one of the value as Salesforce (Label) and API name is SFDC. When a record is created with this picklist value and queried then it would return the API name (...
3
votes
2answers
6k views

Need help IF ISPICKVAL Formula field

I have a checkbox and picklist field.I want to have a formula field which evaluates that the checkbox is checked and will assign different values based on user selected picklist field value. Here is ...
3
votes
2answers
3k views

Boolean Field v. Yes/No Picklist

Consider two fields with the following types: checkbox/boolean picklist with "yes" and "no" as valid values along with validation that forces one of the two values to be picked, effectively making it ...
3
votes
2answers
764 views

How to Query or write aTrigger on PickList Values

For the standard SalesForce CRM objects like an Account or Opportunity there are bunch of standard fields of Picklist type - for example OpportunityStage What is the best way to query current state ...
3
votes
1answer
88 views

Is it possible to change salesforce picklist field from one global picklist into another

I am trying to figure out whether it is possible for a Salesforce field to switch from one global picklist into another? Trying to click around but didn't find the option
3
votes
2answers
552 views

New Picklist Values added via Metadata API stay inactive

I am using the Metadata API wrapper from https://github.com/financialforcedev/apex-mdapi to dynamically add picklist values to an existing field. @Future(Callout=true) private static void ...
3
votes
1answer
2k views

SOQL exclude records with blank values on Multi-select picklist fields

I have field Application_type__c on lead object which is multiselect picklist. I want to exclude records where picklist value is No application' or 'Global Markets or Blank. My query is Select Id, ...
3
votes
2answers
3k views

Fetching picklist values based on record type

Is there any way to fetch picklist values based on a record type. I am wondering how salesforce does it. I am fetching list of record types via ForceTK, next i want to fetch picklist values based on a ...
3
votes
1answer
4k views

Language Translation for picklist values in VF Page

There are 2 picklist fields in my VF page. I successfully translated the whole VF page using custom labels (into Spanish), but the picklist values are not translated. How to translate them? Here's ...
3
votes
2answers
700 views

How to create a master-detail object picklist to picklist trigger

I am new to creating triggers and would love some assistance in creating a trigger that can mirror a picklist values. I have two identical picklists called "Test_Status__c" on both the Account object ...
3
votes
2answers
715 views

Does getPicklistValues() always return PicklistEntry records in proper order? [duplicate]

If I run DescribeFieldResult.getPicklistValues(), e.g., Contact.Salutation.getDescribe().getPicklistValues(), it usually returns the PicklistEntry records for Salutation in the order that I have ...
3
votes
2answers
3k views

How to set default picklist value on page load on visualforce page

my picklist value comes from an object but upon page load, i want to have '--select student--' as the default value of the picklist. controller snippet public List<selectOption> getsNames(){ ...
3
votes
1answer
3k views

How to remove a picklist from a record type?

I have 10 Picklists Available for Editing for Record Type 1. So how do I remove Picklist X from Record Type 1. I have added a screenshot. I can't find the option to remove a picklist from a record ...
3
votes
2answers
1k views

Possible to use a “list” custom setting on a standard layout picklist field?

I've searched it and found a few things where people have put it as an idea to be voted for a few years ago, but I haven't seen any response from Salesforce on any I've seen, so what I want to know is ...
3
votes
3answers
4k views

How do I copy (and map?) a custom lookup field from Leads to Opportunity and to Account

I have been asked to add a new picklist field on the leads page which I have done but this also needs to follow thru to the opportunities and accounts page if the lead is qualified. Can someone ...
3
votes
1answer
2k views

Deployment fails when deploying picklist fields that contain URL encoded values

I'm trying to deploy a picklist field with long string values. The current limit is 255 characters, which isn't a problem except when the string contains characters that salesforce URL encodes, in ...
3
votes
1answer
4k views

How to query picklist item in the WHERE clause

I have the following function to get the available roles: public List<String> getConsulteeRoles(){ List<String> str = new List<String>(); List<SelectOption>roles = new ...
3
votes
1answer
380 views

Create unique label & values for a custom Picklist field

I want to create a custom picklist field that would represent a packaging type which would in turn represent a divider for the shipment's total quantity. For example, if the dropdown had the following ...
3
votes
2answers
2k views

Can we have more than 40 characters per value in a custom multi-picklist

I have got a picklist and multi-picklist. And for values in multi-picklist, some are upto a length of 100 characters and Salesforce doesn't accept them. After going through the limitations of picklist ...
3
votes
1answer
2k views

How to disable States once the new Country and State is enabled?

I have enabled (with a lot of work) the new State and Country picklists. I think I may need to do some more tweaks with the states, and need to disable some of the states in countries I do not use. ...
3
votes
2answers
2k views

None to not be defaulted in picklist

On a visualforce Page.. I have called a picklist Field Is there a way to get rid of -- None -- in picklist and replace it with "Please Select...." None is always shown when we give the picklist field
3
votes
2answers
7k views

Salesforce - Mass Update Picklist Values

I would like to mass update picklist values in a custom object from picklist values in a standard object. In the absence of universal picklists, i am having to manage a few picklists in different ...
3
votes
1answer
1k 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 ...
3
votes
2answers
3k views

Restricted picklist issue even providing correct value

In a test class, I'm passing a value of a restricted picklist. Below is the value, and the screenshot of the restricted picklist LOVs:- SVMXC__Quote_Line__c testQuoteLine = new SVMXC__Quote_Line__c();...
3
votes
3answers
8k views

how to get the picklist values by record type in salesforce?

My requirement is when i get the picklist values from account, it is showing all pick list values irrespective of record type?how to do this? public List<selectOption> getPickValues(Sobject ...
3
votes
3answers
2k views

Workflow Field Update formula function TEXT() using picklist API values, not label values

I have custom picklist field (Alpha_Type__c) with the following sorts of values: Option: A B C - XY the api name for this is: a_b_c_x_y A B C D the api name for this is: a_b_c_d A B C \ DEthe api ...
3
votes
1answer
1k views

Picklist field in Salesforce 1

I´m building a simple visual force page that is showed only if user get access to Salesforce with Salesforce1 mobile Application. I´m having problems with the picklist: <apex:inputField ...
3
votes
1answer
1k views

Change Picklist for Standard Object in Managed Package

I have a requirement whereby I need to add a new entry to the "Type" Picklist in the "Campaigns" standard Object. I need to add a new entry in the picklist in addition to the ones already provided by ...
3
votes
1answer
33 views

lightning-record-edit-form: display text field as a custom picklist?

I've created a custom object where the user manually enters a locale value (ex: en_US, es). Instead of letting the user manually enter a locale, I'd like to provide the user with a combo box of valid ...
3
votes
0answers
507 views

Populate Record Choice Set from a Record Collection Variable

I am creating a lightning flow & trying to create an input with dynamic choices. On the basis of some decisions I am using get Records with different filter criteria to get records & using ...
3
votes
0answers
1k views

Picklist Values org to org migration using Ant Migration tool

Hi I am working in a project that merge two Salesforce org into one. While migrating standard picklist values using the Ant Migration Tool, I can retrieve picklist values using the following package....
3
votes
1answer
49 views

Account History tracking shows codes instead of full names after enabling State/Country picklists

I'm seeing that changes made on an Account after we have enabled State & Country/Territory Picklists on our sandbox default to showing the shortcodes for Country & State. Isn't it possible to ...
3
votes
1answer
15k views

get selected values of Picklist (Multi-Select) as list of string

I'm trying to get selected values and labels of picklist (Multi-Select) for a record of custom object and store these values in list of string but size of it not displayed. Apex Class public with ...

1 2
3
4 5
19