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

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.

-4
votes
1answer
25 views

Apex class to select a particular value from the pick list and save the record [on hold]

I have a pick list with A, B, C values. Whenever a new record is created then automatically B value needs to be selected and save the record. How can this can be done by using Apex class? I don't have ...
1
vote
1answer
24 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
34 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
17 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
27 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
51 views

How to set existing value to the custom picklist field in lightning component

I have created lightning component to display as options from the related list in the parent object which is invoked in lightning app and placed as inline vf page in parent record. Issue When an ...
0
votes
0answers
26 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
18 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
22 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
38 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
114 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
16 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
19 views

Need to delete Inactive picklist values in sfdc

I have couple of picklist fields and need to delete Inactive values in higher sandboxes.Is there any way by doing it using Package.xml instead of doing it manually.
0
votes
0answers
29 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
22 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
29 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
31 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
23 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
43 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
37 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
27 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
33 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
29 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
34 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();...
0
votes
1answer
26 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
50 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
79 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
90 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
21 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:...
0
votes
0answers
7 views

Access Inactive Campaign Types [duplicate]

Using Campaign.Type.getDescribe().getPicklistValues() I can get the Campaign types that are active. How do I get a list that includes the inactive ones? My current workaround has me iterating on all ...
0
votes
0answers
19 views

Deploying a Change Set would deploy the Case Reason Picklist updates?

This is very generic question I had before I do a major deployment. We have Case Reason picklist which is being used in almost 20 Case Record types with different values for each. I have updated(...
2
votes
2answers
84 views

Partner API describeSObject on Contact fails with “Instance validation error: 'urn:address' is not a valid value for soapType.”

We're trying to pull down picklist values from the Contact object to show on an ASP.Net page using the Partner API. However, we receive the following error when the describeSObject call is made. "...
0
votes
1answer
110 views

How to retrieve picklist value from object in visualforce page

I have the user object in which I have defined a picklist field. The need for this is to allow certain users to only see certain records on a custom VF page. I need to get the selected picklist value ...
0
votes
1answer
115 views

Radio button and pick list fields value is not getting stored in the salesforce org

After finishing the basic lightning component trail I started writing another component of my own choice and when I hit the submit button I get the below error if I cut out the pickList field and ...
0
votes
1answer
324 views

Is there a way to achieve Lightning:dataTable with picklist field?

I want to have inline edit functionality using lightning:dataTable . In my custom object , I have a field called Cabin_Class__c which is a picklist field. When i render this field in the table it is ...
0
votes
1answer
45 views

Populate picklist with object records?

I'm trying to populate the picklist values of a field in my custom object with the records of another custom object called "Warehouse". I was able to do this using a controller and adding it to a VF ...
0
votes
1answer
15 views

picklist was are doubled after form is submitted

enter link description here Same code pasted here
-1
votes
2answers
25 views

Picklist Values retrieved from custom object in visuaforce page becomes a default value after page refresh

Once clicking on save after selecting picklist, It gets saved as a record but becomes default value in VF Page after saving it. How can I retain the last selected value of picklist in visualforce page?...
0
votes
2answers
215 views

Issue with dynamic picklist in lightning component

I have a dynamic picklist in a lightning component : <lightning:select name="selectField" label="Champ" required="true" aura:id="selectField"> <aura:iteration items="{!v....
0
votes
1answer
54 views

State/Country Picklist: The BillingStateCode field contains New Jersey, which isn't an available state

I am trying to migrate our production org to State/Country picklists. I followed the instructions of scanning my org in a Dev sandbox. There was no data to convert because it was a new blank sandbox, ...
0
votes
1answer
29 views

Formula field on opp using created date, record types, profiles, and multiple stage names

This formula works for all my requirement except the underlined part: IF( AND(RecordType.Name = 'Solutions', DATEVALUE(Account.CreatedDate) <= TODAY() - 10, CreatedBy.Profile....
0
votes
1answer
26 views

Formula help using and/if/or together with a picklist

This formula works: IF( AND(RecordType.Name = 'Solutions', DATEVALUE(Account.CreatedDate) <= TODAY() - 10, CreatedBy.Profile.Name = "Perkins Access Standard User", ISPICKVAL( StageName , 'Won ...
4
votes
0answers
61 views

Unable to query with cross-Object pick-list field filter on Custom Metadata SOQL

I came across something weird, SOQL which has a filter as cross-Object picklist field doesn't return rows, even if records exist. Minimum viable code to replicate: Create a new custom metadata type, ...
0
votes
1answer
34 views

Cannot read property 'set' of undefined when List<String> return in ui:inputSelect

All I want to do is retrieve picklist options from a custom object and fetch the inputSelect element in a lighning controller. I am trying this way.. but I am getting an error.. If someone knows any ...
0
votes
2answers
43 views

Apex Keyset- Sort values in DESC order while binding to picklist

I am trying to sort values in desc order before binding these to picklist. I have referred to some posts regarding sorting(This post) and implemented the below: Take keySet() of the map. Convert ...
0
votes
2answers
40 views

Experiment : Formula field is not working using <> or !=

I am thinking maybe it something I should raise ticket to Salesforce but JIC I wrongly write the formula. I am doing validation rule at Opportunity side comparing two picklist value, one is from ...
3
votes
2answers
2k views

How to populate lightning:select with picklist field values?

Everything I have read online so far suggests that one must manually declare picklist (option) values when creating a lightning:select component in an Lightning application. For us, this is less than ...