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
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

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
10 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
20 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
votes
0answers
26 views

Display & update picklist values in custom object

I've a custom object which has a picklist field. I've one visualforce page which shows values from this custom object picklist field to visualforce pagepicklist field. When user first time opens the ...
1
vote
1answer
24 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
18 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
13 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
42 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 ...
1
vote
1answer
32 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
6 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
17 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(...
-1
votes
0answers
27 views

Deployment error “Invalid picklist value for opportunity object translation deployment ” using ANT

Hi folks i'm getting "Invalid picklist value for opportunity object translation deployment " using ANT
2
votes
2answers
49 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
30 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
49 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
75 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
31 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
23 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
63 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
37 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
23 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
23 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 ...
1
vote
0answers
29 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
24 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
39 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
37 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
548 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 ...
0
votes
1answer
31 views

Combining Picklist Options

I have to create a picklist to replace a lookup to prevent my users from seeing all of the lookup records. It throws an error when it is blank when we go to edit it so I had to write it like this: ...
0
votes
0answers
29 views

Apex - Populate Picklist based on Autocomplete Value selected

I have implemented an autocomplete. Upon selection of a value in autocomplete, I want to populate a picklist values. In my controller, I have the function to bind the picklist by passing ...
0
votes
1answer
76 views

Picklist Value Limit

I am having confusion in understanding Picklist limitations. As of now, I have assumption that I can have 1K picklist values for Single picklist(not a multi picklist). Quote from Documentation: ...
0
votes
0answers
25 views

CSS - Salesforce Picklists extra padding/margin on standard layouts? > select option

This seems to happen only in Chrome - I have tried the following: Removed all extensions Removed Profile Reset all flags Reset Settings Reinstalled Chrome I even navigated to google\chrome\user ...
2
votes
1answer
47 views

Programatically how can I link Case Status Values to a Defined Business/Support Process

I am trying to create a custom visualforce page that is aware of the Case Status Values that are related to a specific Case Support Process. I am able to get all Status Picklist Values from a ...
2
votes
2answers
137 views

Is there a way to read all Inactive values of Picklist?

Here is my code. I'm trying to read Picklist Values via code, but I also intend to find out all Inactive Values on the field as well, but those values are not getting called in below code: list<...
2
votes
1answer
318 views

How to update picklist using REST API

Would anyone have an example on how to update a picklist? I have a System Custom Field that I want to append add new items to as it comes up. The details of the field are the following: Field Label:...
0
votes
2answers
39 views

Formula involving Picklist Value, Number and output Image

I have a requirement to produce an image field (i.e one star out of three) based on whether a picklist value is "Supply" or "Supply and install" and determined by the Square meterage number field is &...
0
votes
0answers
42 views

Insert New Picklist value with record type in MetaData Service [duplicate]

Using MetaData API, am able to insert the value in Picklist field in apex code but it is not available for any record type. I am finding hard to expose the value to record type. Here is my code, ...
0
votes
1answer
121 views

restrict users from changing certain picklist values, using validation rules

I am trying to restrict certain users to restrict changing few picklist values, But they are still able to change the picklist. AND( RecordType.Name ='Banker', $UserRole.Name = 'Executive', ...
0
votes
1answer
39 views

Picklist field not available for Record Types

In one of our Sandboxes we noticed one of the picklist fields(not the values, the field itself) is not under 'Picklist available for Editing' section while in other Sandbox it's still there. But when ...
0
votes
1answer
151 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 ...
1
vote
1answer
20 views

Custom Case View based on Custom User Object Field

I'm trying to create a custom case formula field so I can create a view that allows someone to view all cases where the case owner belongs to a certain site as defined on their user object in the ...
0
votes
1answer
257 views

How to display Picklist Label, instead of Picklist API in a Formula Field

I think the title says it all, we are using picklist values having different Label and API Name. How can I display the Picklist label instead of API in when using a formula field. I know I can use IF ...
0
votes
2answers
261 views

Picklist field does not show dropdown arrow with the force:inputField tag

Working on a form that needs to get an user's input on a picklist field. I am using the force:inputField tag to bind the input field. But the physical look of the picklist field is a little off. See ...
0
votes
1answer
29 views

Removal of List elements from another Lists?

There are two lists (UserProduct And List Product), each of them holding Product code and Product Name. On selecting a particular user from picklist UserProduct Lists displays Products based on ...
0
votes
1answer
27 views

Formula - Multiply Date Field by Picklist value (Number of Weeks) - Needs to be editable

Trying to create in Process Builder. When a Lead Time is selected from a picklist then The Contract_Date__c is populated with Order Received Date * Lead Time So if you have a Contract Date of today ...
0
votes
0answers
18 views

Picklist Field Not Updating Due to Disabling/Enabling Behavior

This post is related to this: Custom Picklist Field Not Updated When Value is Changed. At first, I was wondering why picklist field is not updated every time its value is changed. But then, someone ...
1
vote
1answer
110 views

Image Formula and If Statements

I had an image formula field running off a picklist that had fixed values 1,2,3,4,5. The formula worked and showed a red, amber, green, light blue, or dark blue image respectively. To make the ...
0
votes
3answers
194 views

Getting selected value from <apex:inputField> (dropdown) to a controller variable

I am working on a custom VF page for a case screen with extension controller class in use. <apex:actionRegion > <apex:inputfield label="Action" value="{!case.Action__c}" id="Action" > ...
0
votes
1answer
132 views

Deploying Standard Value Set

I am trying to deploy a standard picklist, aka Standard Value Set, via Changeset. I know that via ANT I can use the StandardValueSet element to do it. What is the changeset equivalent for that? Or, ...
0
votes
2answers
119 views

Custom Picklist Field Not Updated When Value is Changed

I have a page displaying a table of Object2__c records. The table has a Checkbox and Dropdown columns wherein dropdown list must be enabled when checkbox is ticked. Dropdown__c field value is set to ...