Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
1answer
21 views

Validation rule get all picklist values

How can I get all picklist values in a validation rule? I'm looking for a suitable function but I cannot find any. What I need to achieve is that some string is among the picklist values. Please ...
0
votes
1answer
32 views

Search Value inside a picklist before inserting

I have objects that I need to fill from a web service that I get from some source. I wondering, If I want to check if a picklist value that transferred from this webservice is a valid value in the ...
0
votes
2answers
27 views

Form In Arabic Language With Picklist Values In Arabic As well

Hope all of you are doing good. I want to create a visualforce page (form) which will take input and submit in database but this should be in Arabic. Everything inside form should be in Arabic ...
0
votes
2answers
23 views

Update existing picklist values with a Global value set

I have a custom picklist with few values in Account object. This field is referring in apex classes and visualforce pages. I want replace its existing values with a global value set. When I edit the ...
2
votes
1answer
24 views

How to retrieve sObject picklist field value instead of API name using force:recordData

To get picklist's field value from sObject using SOQL I can use toLabel(FIELD_NAME). Is it possible to do the same with force:recordData component?
1
vote
1answer
19 views

Populate a picklist based on values in a custom object

Not sure if I am going about this right but I am trying to create a picklist whose values are all values for another custom object. Here is my setup. I have a custom object called Courses which ...
1
vote
1answer
18 views

Can't set a picklist default value when creating Person Account, because Person Account not visible

a bit long but I'm a bit stuck. I have Person Accounts enabled. I'd like to set a picklist default value when someone chooses to create a new Person Account. The picklist is not a controlling field ...
0
votes
0answers
30 views

Inserting Custom Field with Field Dependencies in Apex

I am having a hard time inserting a new record into a the Case Object. This Case Object has a custom field (picklist) called "Category__c", which I add through Apex like so: Case cs = new Case(); cs....
1
vote
1answer
34 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 ...
0
votes
1answer
21 views

I am attempting to populate a picklist with the names of a custom object but my picklist isn't populating and I'm not sure why

I am going through the Lightning Framework Specialist Superbadge and am stuck with my names not populating into a lightning-select component. At this point I'm not sure how to troubleshoot further as ...
-1
votes
2answers
54 views

Picklist to Multi-Select Picklist [closed]

I have a picklist and a multi-select picklist field. The picklist values are same in both the fields. Whenever I chose a value in the picklist field and save the record, the picklist value should be ...
0
votes
2answers
24 views

ERROR = Error: Field Product__c is a picklist field. Picklist fields are only supported in certain functions

Getting the above error. Took the advice of using ISPICKVAL function in my formula (below). Product__c<>ISPICKVAL(Account.Product__c) Still returning the above error.
0
votes
1answer
32 views

Need to restrict the multiselect picklist

I have AccountContactRelation and role is the multiselect picklist field. Based on Type i need to show or allow users to select picklist values. EX: Role values:-P1,P2,P3,P4,P5 If type="Active" User ...
0
votes
1answer
15 views

How to use custom Setting values as a picklist in the VF page!

Scenario : As per the business requirement there will be a Picklist values in the VF page from which user can transform the Whole page in his preferred language. Please let me know if we can handle ...
7
votes
1answer
147 views

Metadata API error while reading Picklist: Web service callout failed: Unable to find apex schema info

I am trying to read a custom dependent picklist field and update it's field-dependencies. I have followed the common resources found online and getting the below error: FATAL_ERROR System....
2
votes
1answer
47 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 ...
-3
votes
1answer
23 views

Restricted picklist value is throwing an error on creation of Case record from apex class

My case object has a custom picklist which has around 20 values. However the Labels and API names are different for each of the values. Also restrict picklist value checkbox is checked for the ...
2
votes
1answer
46 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
30 views

How to get multi-select picklist values to display on line indents on visualforce page?

So I have a multi-select picklist with 4 possible values on it. I would like to have them displayed on the custom visual force page I am making on line indents (li) rather than seperated with a ...
0
votes
1answer
25 views

Summary from 5 pick lists

I have 5 pick lists, each pick list is a review and i need to have an average rating from all the selected pick list values. The pick list values have strings and i need to give average rating as ...
0
votes
1answer
18 views

Visualforce version affecting picklist values

I have a pick list and the default values are not same when I changed between a very old version land the latest version. How is version related to what's displayed in pick list. All other settings ...
1
vote
1answer
25 views

How to autocompile a picklist?

I would like to know if it's possible to autocompile a picklist field with a value of different picklist on others object. In this case, I created a picklist with a name: Campo Prova Picklist ...
0
votes
1answer
100 views

Lightning Component : ui:inputSelectOption : When Default value is set dynamically, user can't change Picklist value

I am working on a Multi-Location Case creation component for our community site. The basic premise is that we use Account Contact Relationships to relate a single User/Contact to multiple accounts. ...
0
votes
0answers
23 views

JSON_PARSER_ERROR in REST POST: Convert Picklist value from Org1 to String or Picklist value in Org2

All my values transferred good, but it's just Strings. When I try to post Picklist value into Text field I get this in debug msg: [{"message":"Unexpected parameter encountered during deserialization: ...
2
votes
1answer
51 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
0answers
32 views

Picklist value is passing null value to controller class

Here is my controller class code: public String pSortedBy { get; set; } Public List<SelectOption> getSortOptions() { List<SelectOption> SortOptions = new List<SelectOption>(...
0
votes
2answers
49 views

Updating 'multi select pick list' field, on many contacts, with different values

My situation is this: I have a custom object that has two custom text fields I need. Name of a list and client Id. Each client Id can be a part of more than one list. I then need to take this ...
0
votes
1answer
24 views

Reporting on multi-select pick list or make custom object perhaps?

We're looking to keep track of what hospital departments we're selling into. Should seem simple enough, except for the fact that sometimes sales folks will of course sell our product into multiple ...
0
votes
0answers
12 views

Can we keep color code the same across the dashboard?

We use data.com clean dashboard to track our data integrity. One issue that is disturbing is that values, for the same field, are colored differently across the dashbaord. The field, is the ...
0
votes
2answers
41 views

Default picklist value for opportunity

After winter 19 release, default picklist value is changed from --NONE-- option to next first picklist value. I would like to reset it to --NONE-- value. can you please let me know that workaround. ...
1
vote
1answer
263 views

Formula Field - Case Function

Am trying to build a formula field with multiple IF conditions, so decided to go with Case function, below is the return statement based on the picklist value 0 Member 2 Member 3 Member 22 Only a ...
1
vote
0answers
29 views

Issues with Case Business Process Picklist values while using Ant

Were doing a first time deploy of code to a QA box and for some reason I keep getting errors about Picklist values not present. I can see them in the Case object under the BusinessProcess section, ...
0
votes
0answers
31 views

How do I set the Default Size & Layout of a MultiPicklist on my VisualForce Page?

I'm wondering how I go about changing the style of my Multi-Picklist? I would Like it expanded by default without the scroll bars. So its showing all the options. This is how it looks when I open the ...
0
votes
1answer
24 views

Control Picklist value for a specific user

Is it possisble to control picklist values to specific user..? Eg: If I add new picklist value to Account Type, that value should be available only for a specific user
2
votes
1answer
41 views

Check picklist value in apex code - just check api name or create custom metadata?

In my apex class and trigger code I have If statements based on picklist values. Using picklists in code I know uses the api name of the picklist value. My question is, is it ok to just use the api ...
1
vote
1answer
36 views

Can I “Exclude Values” of a dependent picklist if I deploy via a Change set?

I am trying to deploy two picklist fields via Change Set Management, so that I can get the new changes(Include Values/Exclude Values) in the Field Dependency. After the deployment what I found was: ...
0
votes
1answer
37 views

Can't change picklist-field value in apex

I have to insert a new record that has a field with of type Picklist (Multi Select), and I get this error trying to insert: TestValue is a value already added in the values list. bad value for ...
0
votes
1answer
148 views

Set Picklist via Apex code

I am trying to set picklist value via Apex code. Please find the below details. We have 2 picklist values in one field named Company Email with values 'Yes' & 'No'. We want to set the values to ...
0
votes
1answer
68 views

Html-placeholder does not work with input Field

I have a picklist in Salesforce that I am displaying on visualforce page. The picklist by default shows --None-- as an option. Instead of displaying None, I want to display Please Select or maybe ...
1
vote
1answer
34 views

Automate the process of picklist values retrieval from the backend

Is it possible to automate the process of picklist values retrieval from the backend? Here is how I am doing it right now: @AuraEnabled public static List<String> ...
1
vote
1answer
39 views

Query Salesforce fields with their unique IDs

I would like to query all picklist fields on a specific object, along with their associated unique Salesforce IDs (I'll be loading these as custom metadata types). I don't need the picklist values, ...
1
vote
1answer
43 views

Add picklist to community based form using lightning data service

I've got two fields on a Contact that I want to ask on a separate page with some verbiage on it and for some reason, I cannot get any of the LDS record handlers to work properly. I thought I would be ...
0
votes
1answer
66 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();...
1
vote
1answer
51 views

Picklist values in a formula on a validation rule (along with text fields)

I have a validation rule on the contract object which doesn't allow a checkbox to be checked by users until they have completed the required fields. The issue is that some of these fields are picklist ...
1
vote
1answer
80 views

Removing duplicate values from picklist

I am trying to extract picklist value from a custom object Product__c, but I am getting duplicate values in the dynamic picklist. Controller Code public class VFOnlineShoppingController { //...
0
votes
0answers
20 views

I have one dependant picklist and controlling picklist and just wanted to ftech value of controlling picklist from dependatn picklist [duplicate]

I have one dependent picklist, and controlling picklist, and just wanted to fetch value of controlling picklist from dependent picklist. How can I achieve this using apex? Controlling picklist ...
0
votes
0answers
15 views

I want to keep next and previous buttons after picklist field and i want the next value in picklist field after clicking next button

public class RecordsBetweenDates1 { public List<Opportunity> lste {get;set;} public List<Opportunity> lstelist {get;set;} public string statusSelected{get;set;} ...
0
votes
0answers
172 views

How do I pre select MultiSelect picklist values and update a record with the selected values on a VF page? [Included VF and Apex example]

I'm having some trouble understanding how to do this with my code. I feel like im really close since im populating all the available values to the picklist but its not pre selecting the values set on ...
2
votes
1answer
143 views

Translation for '--None--' value in lightning?

I am fetching the Labels & Values of a Picklist by using the following method public static Map<String,String> getPickListValuesMap(string objName, string fieldName){ Schema....
0
votes
1answer
22 views

Aura picklist 50 item limit

The below code produces a list of 50 accounts that display in a picklist. I need to have more items to display in the picklist. How can I do this? Can I change the type of picklist? <lightning:...