Stack Exchange Network

Stack Exchange network consists of 175 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.

1
vote
1answer
44 views

Lightning Web Components - I am having problems getting the PicklistValues for the Status field in the Campaign object

I have the following code import { LightningElement, wire, track } from "lwc"; import { getObjectInfo, getPicklistValues } from "lightning/uiObjectInfoApi"; import CAMPAIGN_OBJECT from "@...
0
votes
0answers
16 views

Rerender of Outputpanel not working in modal component

I have a VF page with a modal component in it, which gets displayed depending on a button click. There are 2 issues: I pass a record id to the modal component via a data-attribute, which populates a ...
0
votes
1answer
10 views

Trigger change in PickList4.js from Salesforce

How can I trigger a picklist change event inside salesforce: We have the following code : <apex:outputPanel id="dynamicRerender"> <apex:repeat value="{!strings}" var="...
-2
votes
0answers
27 views

How to add new value to Multi Picklist using apex

I want to add new value to the Multi Picklist using apex, it not should be an existing value and also the new value must be selected, how we can achieve this. please help me
1
vote
1answer
21 views

How to adress rerender in visualforce page on pageload

I currently use the actionregion to rerender an image based on the input of a picklist field. This works by showing the image if I select the correct value in the picklist field. How do I do an ...
0
votes
2answers
60 views

Unable to display the multiple picklist field values in lightning component

I am trying to display 3 different picklist field values in a input form using lightning component. I am able to display the values for any one of the picklist field only. If I try to display the ...
0
votes
0answers
18 views

how to use .getvalues with map and display the picklist value from custom setting on VF page thoghing null pointer exception [duplicate]

have a custom setting called product and under that i created two fields called and other is string field BD__c. i want to display picklist value based on string matching record. my custom setting ...
0
votes
0answers
19 views

Dynamically created Picklist setting of options [duplicate]

I am trying to manually assign picklist values to a dynamically created component. I can't seem to get the correct syntax for options. I don't know if I can use option when dynamically creating the ...
6
votes
1answer
226 views

How can I query the supported timezones in Apex?

Apex provides a TimeZone API. You can use this to query the detail of a time zone, named using its "SID" (a value like "Europe/London" or "America/New_York" for example). However, this API doesn't ...
0
votes
0answers
26 views

JSForce - Updating picklist value API names

I'm trying to automate with JSForce a manual step which consists on renaming the API name of some pick-list values but doesn't look like it's possible. Tried update with conn.metadata.update('...
0
votes
5answers
36 views

Field type for lookup

The client has an object with multiple fields. One field is to choose an account. Another field is customer type. Customer type is currently a picklist, but the client wants to change it to a lookup ...
0
votes
1answer
25 views

How can I find where a Record Type object's field value Pick-list is getting its values from? - Task & Event objects

So far when I'm asked to add a value to a record-type picklist I can go into the field of the object, add the value, and then go into the record type picklist and add it to available values. For this ...
0
votes
2answers
44 views

custom setting not displying correct picklist values based on the condtion

i have a custom setting called product and under that i created two fields called and other is string field BD__c. i want to display picklist value based on string matching record. my custom setting ...
0
votes
2answers
21 views

Lock a single Picklist value

How can I restrict users from viewing access to a single picklist value? only admin users should be able to see this value.
0
votes
1answer
20 views

Is it possible to create a picklist of Record Types?

I need to create a picklist on an object, where i can select record types that are filtered by a lookup field. Example: Accounts object has a lookup field for Custom_Object B Account also has a ...
0
votes
1answer
11 views

Picklist Text to Numerical Value

I am putting together an evaluation form in Salesforce. I am using Customer object Greeting__c, the pick list values are High, Met, Below. I would like to assign a formula that sets "High" to ...
0
votes
2answers
64 views

How to limit picklist values based on Role?

I have added a value to a picklist that is dependent on the value of another picklist. I have added the same value to a different picklist. It is added for particular record types. When the user of a ...
2
votes
0answers
57 views

Unable to update manage package picklist field entries using apex code (metadata API)

Unable to update manage package picklist field entries using apex code (metadata API). I tried using two ways of creating picklist values of metadata API. Way 1: public static void ...
0
votes
1answer
14 views

how to show picklist values in different languages dependent on the current user’s country?

I want to show picklist values in the language of the logged in user. (don't want to use VF pages)
0
votes
0answers
25 views

Using Custom Permissions to restrict picklist values to specific users

My goal: Using Validation Rules and Custom Permissions to restrict accessibility of specific values seen in the Account Type picklist to be available only to specific users. I have the custom ...
0
votes
2answers
36 views

Restrict access to picklist value to specific users

Disclaimer: I am rather new to Validation Rules (and Salesforce in general) and GREATLY appreciate any assistance this community could offer I am attempting to lock down 3 picklist items from the ...
0
votes
1answer
33 views

Salesforce Lightnining unable to see full values in UI Picklist

In Salesforce Lightning Experience, whenever I have a 'Classic view' picklist, when I click on the picklist to choose a value, I am unable to view the select options: If i minimize my browser window ...
0
votes
0answers
13 views

Picklist value added to Inactive values list if i create new value from rest API?

I have one pick-list field called type if i gave new value to type pick-list field it's creating the value in field but it is in active.I am creating record Throw REST API.How to make this active ...
0
votes
1answer
27 views

Picklist values activate or deactivate with workflow or process builder

I am working on the Opportunity Record and we would like to have a more granular reason as to why a Product Opp was lost to a competitor. The business folks want a single picklist but this picklist ...
0
votes
0answers
31 views

more than 2 dependent pick-lists

I am aiming for creating a dependency among the following pick-lists: Continent Europe Asia Africa Country Spain Netherlands China Korea Morocco City Madrid Barcelona Rabat Casablanca Beijing Macau ...
0
votes
1answer
36 views

Unable to Edit TaskSubtype Picklist Values

I'm unable to add any picklist values to the Task field TaskSubtype. I actually can't even see the current values without looping through the describe results for TaskSubtype. I have no problem ...
0
votes
1answer
67 views

Issue with Updating Pick list Values through Metadata API in Apex Class

What I have done : Installed repository from GIT HUB In my Personal org https://githubsfdeploy.herokuapp.com/app/githubdeploy/financialforcedev/apex-mdapi Created a custom controller and method : ...
-1
votes
1answer
83 views

I want to make a picklist field required in lightning component

<div class="slds-form-element slds-form-element_edit slds-form-element_stacked slds-hint-parent"> <c:PicklistSelect objectName="Events__c" fieldName="CurrencyIsoCode" label="Currency" value="...
0
votes
1answer
29 views

How to retrieve picklist option values in heroku

I am trying to get and display the picklist option from salesforce, in heroku. Can anyone kindly let me know how I can achieve this. I am querying records from case. And I want to display the case ...
0
votes
0answers
98 views

Error: top picklist missing

I am using the flow builder to create a three level dependency among three Pick-lists; however, I am getting the following error message(check screenshot too): Error: top picklist missing I am ...
1
vote
1answer
50 views

Error when converting a Lead record

When converting a Lead record the following error message is displayed: System.DmlException: Insert failed. First exception on row 0; first error: INVALID_OR_NULL_FOR_RESTRICTED_PICKLIST, bad value ...
0
votes
0answers
61 views

SFDX how to retrieve custom picklist with force CLI

when I push the source to my scratch org I get the following message "You must specify either picklist, globalPicklist, or valueSet." is there additional element to add into the package.XML for ...
0
votes
1answer
40 views

How to create a Purchase Order record in Salesforce using CreateAsync method in c#

I'm a newbie to salesforce and i want to create a custom Purchase Order record using CreateAsync method of Force.com Tool. I'm successfully able to create a record when i'm just passing the parameter ...
0
votes
0answers
74 views

Lightning picklist in table

I have a table for create expenses. The table shows 3columns (a picklist, a decimal, and a text). I create a ui:inputSelect for the picklist. The table load the values of picklist, and save the value, ...
0
votes
2answers
61 views

How to assign both (value, label) to picklist field in Unit Test class?

Added explanation: Since the Case.picklistField is constantly modified by other Org user (non-developer), so I want to avoid data dependency as much as I could. I have a case trigger method using ...
5
votes
1answer
41 views

sObject describe metadata showing duplicate picklist value entries

I'm doing some code generation based on the standard org sObject metadata. As part of that process I'm using the DescribeSObjectResult.fields.picklistValues PicklistEntry records to determine which ...
0
votes
1answer
29 views

if picklist label is queried using ToLabel() for an SObject, one cant save updates to this object if picklist is restricted

I followed the article below and got the picklist label-name instead of API name for an object. How to query 'Value' of a picklist rather than the 'API NAME', using SOQL? However ...
0
votes
1answer
67 views

want to create multiple Picklist in lightning and show all sobject in it

I am trying to create a multiple picklist on lightning page but i am not able to fetch sObject in multiple picklist. Here is my code :- Controller class:- global with sharing class AboutController{ ...
1
vote
1answer
21 views

Field Dependencies with Repeat Tag

I am new to the visualforce development. Right now i am going through developer guide. I am little confused about apex: repeat tag Dependent Picklist Considerations • You can mix controlling and ...
0
votes
1answer
34 views

How do I use a custom object as the source for a multi-select picklist

We have a custom object with a list of "Types" that can be associated with a Contact record. We also maintain a custom multi-select pick list field on Contacts with those types. A contact owner can ...
2
votes
1answer
43 views

How to set picklist value in URLFOR?

I'm trying to set a picklist value in URLFOR. I have a custom button and when the button is pressed the following javascript is executed: window.parent.open("{!URLFOR( $Action.Custom_Object__c.New,...
0
votes
2answers
350 views

Multi-Select Picklist in Apex

I retrieved a multi-selected picklist values and I received the values separated by comma as below. But I noticed another post with answer that selected multi values is separated by semicolon, how ...
0
votes
0answers
29 views

Use VisualEditor.DynamicPickList with blank valule

I have a component that uses VisualEditor.DynamicPickList to show active case types users can choose when configuring it on community layout. Works like magic but now I want to reset one of the ...
0
votes
1answer
25 views

Record type behavior not working on edit record layout

I have one question regarding Salesforce Record Type. I have two different user profile. Admin Manager I have created record type for both users in which I control the status field (Picklist Value). ...
0
votes
1answer
126 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
45 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
55 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
3answers
426 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
55 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
23 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 ...