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
0
votes
2answers
32 views

Pick List values added dynamically in Java Script are not reflecting in Lightning:combobox LWC

I am trying to pass a list of pick list values dynamically to lightning-combobox , but the values are not rendering in the list. Below is the sample code i am writing. JS Code: @track EmpList= [{ ...
0
votes
1answer
30 views

Option to select none in picklist fields lightning-combobox - LWC

Using lightning-combobox i am able to display required picklist values but trying to achieve below two options. Allowing users to unselect back to none from the selected value As of now if user ...
1
vote
1answer
27 views

Opportunity record on creation defaults to deleted stage value

I deactivated couple of stages from the Stage field on my Opportunity object and replaced them with new ones. However when I create an opportunity record, the Stage picklist defaults to an old stage ...
1
vote
0answers
10 views

Form Assembly, bringing a Time field value into a dropdown

I am managing a page which allows the update and editing of Campaign objects, used for group tours of a campus. I am attempting to feed a value from my Campaign objects's Start_Time__c field (Time ...
0
votes
1answer
33 views

Searchable pick-list in Lightning Component? [on hold]

I am trying to implement the searchable pick-list in lightning component. I followed this post to implement with help of external jQuery selecr2. But Itis not working as expected the search result and ...
0
votes
1answer
16 views

How can I make my <account> variable filterType equal to the first account returned in a StandardSetController Query?

how would this work with a dynamic search page I have a visual force search page and I have used the stadardsetcontroller for pagination. The initial query during page load is working for me. ...
0
votes
1answer
18 views

Lightning:dualListbox Style Not Working As Expected

When I create a dualListbox on a lightning component I am unable to see the values. When I inspect I can see that the values are there. It almost looks like the color is set to white or transparent. ...
1
vote
1answer
37 views

How to identify in Apex what picklist fields are restricted

I wish to apply logic if a picklist field is a restricted picklist. Let's say I have a restricted picklist field called 'County__c'. I can see that there are a number of methods available in the ...
1
vote
1answer
53 views

Lightning Datatable Picklist and Lookup Work Around

I am aware that lightning:datatable does not support picklists. The approved attributes are: action boolean button button-icon currency date date-local email location number percent phone ...
1
vote
0answers
24 views

Lookup field visibility based on picklist value is not working

I am trying to display a lookup field based on the value of a picklist. If the value 'Other' is chosen on the picklist, the showOtherAddress is set to true and then the rerender triggered by the ...
-1
votes
1answer
31 views

How to write a test for a VisualEditor.DynamicPickList class?

I have this DynamicPickList class that creates picklist values based on what lookups have been put on the Contact object. It is used in the targetConfigs of a LWC. How do I write a test for this class?...
1
vote
0answers
13 views

the order rule of multiple picklist values from SOQL

What is the order rule of multiple picklist values? When I try to SELECT global multiple picklist values by SOQL which is used in custom object, the order of multiple values is not same as the order ...
1
vote
1answer
29 views

Rerendering based on a picklist loses the value of that picklist

I have a page that is trying to re-render a certain area of the page when a picklist (ndaDetails.NDA_Type__c) is changed. The picklist itself is a part of the pageBlockSection that is supposed to be ...
2
votes
1answer
78 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 ...
0
votes
0answers
18 views

Create dynamic picklist in Flow Builder from Text

The requirement goes like this: There is a MultiPicklist Field A on the Account (options -> A;B;C;D;E) and a Single Picklist Field B (options -> A;B;C;D;E) on Case. When the user updates the case, ...
0
votes
0answers
33 views

How to tally a picklist value in Report Formula Builder?

We have a proprietary survey for closed cases where a customer clicks a button and it updates a field on the Case object called One Click Survey. There are four options: "Excellent", "Great", "Ok", ...
0
votes
1answer
35 views

lightning data service : picklist field not showing

Is picklist not supported in lightning data service when using with lightning:input <lightning:input type="text" label="Description" value="{!v.simpleRecord.Description__c}" /> I need to use ...
1
vote
1answer
47 views

multiPicklist query

I have a few global picklists which I using for multi picklists. I'm trying to retrieve a data via SOQL but something goes wrong - not all the rows are back or sometimes none of them. It depends if I ...
0
votes
1answer
22 views

separation characters between picklists value - Set

I have 6 multi picklists. I pushed all the selected values into Set For Example: Picklist A: Cherry Apple Picklist B: Apricots Avocado Picklist C: Banana Blackberries Blackcurrant ...
0
votes
0answers
27 views

Visualforce dropdown rendering invisible values

I have a Visualforce page using Lightning stylesheets with reRender attributes on the time selectList. For some odd reason, some users are experiencing intermittent issues with the picklists ...
7
votes
0answers
48 views

Is there a way to automate the deployment of changed picklist values in a pipeline using SalesforceDX?

Sometimes we need to change the label or, more commonly, a value for a picklist item. Suppose we do change the fullName attribute of a picklist field, to match an external system that will integrate ...
0
votes
0answers
37 views

How to access global picklist value set in apex code [duplicate]

I want retrieve Global picklist Value Set and assigned them into a drop down box using apex. How could I resolve this?
0
votes
0answers
27 views

Can i create Dependent picklist in flow where controlling picklist is “Screen component Picklist made with choice resource type”?

I have created flow screen, and created 1 picklist from screen component and added choice resources as picklist values. Can I create dependant picklist for above picklist? eg. Screen have picklist ...
0
votes
0answers
12 views

Clean country state data before activating country state picklist

There are about 100 different countries and many states on production. Now I want to activate the State and Country picklist. But the State data is messed up. How would I clean this up? Through ...
0
votes
2answers
30 views

How to remove an option from mutli-picklist field in apex trigger

I want to write an apex trigger action to remove a particular value from multi select picklist field based on some condition.How can I do this? This is my trigger action: public static void ...
0
votes
1answer
22 views

How to Enable all state list for State and country picklist

We were using the state and country text field in address. Now, we have enabled the standard state and country picklist. But the state picklist is shown for only 9 countries. Eg. USA has state ...
1
vote
1answer
27 views

Assigning values to blanks in a picklist

I am trying to assign values to all the responses in a picklist including blanks so I can bucket in a report into responded and not responded. My formula is below but I am getting multiple syntax ...
2
votes
1answer
77 views

How to mass-deactivate 700 picklist values

I am looking for a way to deactivate 700 picklist values (not manually) I do NOT want to delete the values, only deactivate them I am trying with ant migration tool with this package.xml: <?xml ...
0
votes
1answer
81 views

popup on case object edit page, when a picklist value is selected

Is there any way I can have a dialog box pop over on selection of particular picklist in the standard case object. My use case is: If the user selects one of the picklist value from the dropdown in ...
0
votes
1answer
35 views

How to make dynamic picklist?

I have one custom object Backlog and I have one picklist field Full_Name_of_the_Specialist__c which is having manually inserted all the Names of the Specialist profile. Now when new employee come, I ...
1
vote
1answer
139 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
20 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
14 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="...
1
vote
1answer
25 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
224 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
21 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
21 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
413 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
5answers
45 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
28 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
74 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
27 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
23 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
266 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
107 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
25 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
82 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
76 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
77 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 ...