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
44 views

How to Get List Of Countries in Apex

I'm aware that Salesforce provides a native way to use country and state values in Account and Contact address fields. But what if I want to use apex to get those list of countries so that I can use ...
0
votes
0answers
13 views

dynamically show a text field

On a Licence Request record, if a specific value is selected from a picklist, then a text field should be dynamically displayed on a Licence Request Key record. Can this be done via a formula or ...
0
votes
0answers
14 views

How to get the standardsetvalue in package.xml [duplicate]

I have modified subject, status picklist values in task standard object and trying to retrieve from source but I am getting warning message like Retrieved source no result found. Can anyone help me to ...
1
vote
0answers
68 views

order of execution for evaluating restricted picklists

I am inserting lead via soap api (formassembly form) with a before insert trigger that translates (invalid) incoming picklist values in various languages to valid api values. update - also tested via ...
1
vote
1answer
47 views

set picklist default value

For the Deployment Scenario picklist - the default option is 'not completed' I have created field dependencies, to ensure that Alibaba, AWS, Azure, Google, IBM Cloud, Oracle Cloud are only displayed ...
0
votes
1answer
39 views

The values of picklist 2 are dependent on picklist 1

I have two picklists. Picklist 1 values: 1, 2, 3, 4 Picklist 2 values: 'a', 'b', 'c', 'd', 'e', 'f' The values of picklist 2 are dependent on picklist 1: if picklist 1 value = 1 then picklist 2 value ...
0
votes
1answer
31 views

What is wrong with this validation formula, it lets users to just input in one field instead I need them to put value in all fields

AND( OR( ISPICKVAL( Why_lost__c , "Better competitive solution"), ISPICKVAL( Why_lost__c ,"missing features"), ISPICKVAL( Why_lost__c , "Competitor")), ...
0
votes
0answers
19 views

Record Triggered Flow based on Text field

I am wondering the simplest method to update a picklist value based on a specific text value in a text field. e.g: if textfield1 is updated to "Dog", picklist1 is updated to "Dog". ...
0
votes
1answer
45 views

LWC issue in binding the lightning combo box

I am using LWC in a screen flow. I get a response from an API and need to bind that value in the lightning combo box. It's in the JSON array format. Here is the code. JS import { ...
0
votes
0answers
29 views

Picklist in flow displaying all values despite record types?

I'm working on a flow and I have a picklist field from Activity. I created a record type and set only a few of the values to be visible in said record type- However, in the flow it still shows all ...
0
votes
1answer
41 views

How to create a validation rule for 4 picklist values

Hi i am new to salesforce, I want to create a validation rule on an Account object where Picklist field named as Ownership, I want that when an user enter no value means null value there should be ...
0
votes
2answers
41 views

For a CustomeObject where woud I put/find the Picklist translations?

I have a custome object and that has a field with a picklist. Now I need to translate the picklist not via the UI I just like to know what file I need to put in which folder.
0
votes
0answers
37 views

Trying to create child Account record whenever a new Account is created

Instead of someone clicking on "Clone" button on an Account , we are trying to automate this process whenever a new Account is created. We need child account picklist field value filled in ...
0
votes
2answers
35 views

Copy contents of a field to a picklist in an Object

I have a requirement where I needed to convert a field in a particular object from a formula returning a number to a picklist. Since directly changing the data type would result in loss of data, it ...
0
votes
0answers
81 views

Delete inactive picklist values using Metadata API - destructive package xml

I am trying to find a way to delete some picklist field values using Metadata API. My initial thought was to remove from the Metadata file and deploy it. However, the picklist value that I removed ...
0
votes
1answer
47 views

Make a custom Pick List field required when certain condition is fulfilled [closed]

Could you guys please help me make a validation rule if when our "Invoice_Paid_Date__c" custom field is not blank then require "Send_Upsale_Email__c" to be filled out (Its a yes/no ...
0
votes
1answer
27 views

Process Builder Not Firing Immediate Actions "On Create" For "Do you want to execute the actions only when specified changes are made to the record?"

I have a process builder for which I need immediate and scheduled actions to fire. I have selected the option "Do you want to execute the actions only when specified changes are made to the ...
2
votes
1answer
21 views

Extending a picklist with additional values 2GP

I'm creating a 2 GP package packageB which depends on several 1 GP packages. In packageB, I'd like to extend a picklist from packageA, one of the managed packages, with additional values. I tried ...
0
votes
1answer
24 views

add custom field to New Event

I would like to change the Subject field to a picklist with specific values. I am unable to identify where I can do this within Setup - can anyone please advise?
0
votes
1answer
81 views

LWC - getPicklistValues on User Object

I am unable to retrieve picklist values from a User object field as the object doesn't have a record type (or master). Does anyone know if it's possible? https://developer.salesforce.com/docs/...
0
votes
1answer
24 views

Unable to view Picklist value in UI(when I'm trying to create a record)

I have newly added a picklist value in my developing sandbox .Later I deployed it to QA there , while I'm creating a record I can't find that value. In QA setup , I can find the value as a active ...
0
votes
2answers
43 views

Show all records with an invalid picklist value

Is there a simple way to reveal records that have incorrect picklist values? Example: Record A is created with restricted value Picklist__c value of "Aerospace" Picklist__c is updated ...
0
votes
1answer
22 views

Cannot see all picklist values in a Translate Settings

I have a country field in object Case with 50 picklist values for countries. I'm creating a Translate operation in settings, I select my desired language, setup component Picklist value, and object ...
0
votes
0answers
39 views

How to populate a picklist field with it's label value instead of API value in apex

I have configured the picklist values like this. If I want to populate the picklist field by label value we need to query object schema and iterate to find API value. Schema.DescribeFieldResult ...
0
votes
0answers
21 views

How can I create API names in global picklist with 500 values in a fast way? [duplicate]

I have file like this with about 500 values: I am creating Global Value Set. Column A is for Label and column B is for API names. Both columns contains about 500 records. I know that I can create a ...
0
votes
1answer
28 views

How to get the list of value from the metadata when updating picklist values through REST API

I am trying to update a picklist values through REST API, I'am having a problem getting the list of values so I can add new picklist values. I'am having an error System.TypeException: Invalid ...
0
votes
1answer
44 views

Updating picklist value using metadata api

I'm updating picklist value using metadata api and apex. Below is my code snippet and I'm receiving an error: Variable does not exists: picklist on: customField.picklist = pt ; Can someone help me? ...
0
votes
1answer
26 views

Using ANT to migrate picklist updates

I have a picklist with 3 values: A, B, D. In my Sandbox X, I edited 'D' to be 'C' both value and label. This made all existing records using 'D' to now show 'C'. When I deployed the picklist from ...
0
votes
1answer
28 views

Picklist Field Values [closed]

I am trying to add new values for a picklist field and removing old values of that field from a specific Record Type only. Those old value will be active just removing from a specific record type. ...
0
votes
0answers
30 views

Pre-propulate multiple picklist values via flow that contains comma

Hello dear community, I hope you can give me some answers to my problem. I have a multiple picklist field that contains, for example, following values: Development Analytics, Sales Sales Marketing &...
0
votes
1answer
34 views

picklist default value

i'm a little bit confused with default picklist values. Let's say there is need to be ensured that every time record is created or updated value is populated. I believe that setting Use first value as ...
0
votes
1answer
18 views

Date Field should populate date everytime, whenever picklist value is changed

Whenever a picklist value is changed ( considering I have 3 picklist values in the Picklist field), I want my date field to be updated for today's date. And this update should happen each and every ...
0
votes
1answer
28 views

What happens to exisiting records when you change Picklist API name

I am wondering what happens when you have a Picklist field with 2 values Yes and No and you change Yes API name and label to Approved, what happens to existing records in the system with the Yes value....
0
votes
1answer
35 views

Picklist Choice Set - Fields does not appear for New Object

I created a new Object and new fields. I am building a Screen flow. I am trying to create a Picklist Choice Set type resource. https://help.salesforce.com/articleView?id=sf....
0
votes
1answer
36 views

Picklist values showing on Lightning but not showing on Classic

I have a picklist with 4 values. In Lightning all the values are displayed and the user can select them, but when the same user change to classic and try to edit the picklist just one of the values is ...
0
votes
0answers
14 views

FSC InsurancePolicy.Status mapping to InsurancePolicy.IsActive

The FSC InsurancePolicy object has a standard Status picklist field that has an Inactive property for each picklist entry - this Inactive property drives the IsActive field on Insurance policy object (...
0
votes
0answers
172 views

LWC table my custom object and combobox picklist filtred

I have a task to display a table of positions with the status field Combobox Picklist filtred. As I have not experience in JS and LWC, it is so difficult for me to understand how to do this. Help me ...
0
votes
0answers
57 views

Set picklist field from record variable in flow

i have requirement to create new lead based on creating a new record of custom object. i am using process builder and Auto launched flow to implement this requirement. in my flow i am using get ...
0
votes
0answers
24 views

Event Record Type Picklist Filter

We use a shared picklist field for both events and tasks. And I am trying to filter out some of the picklist values based on whether it is an event or a task. I went to the Record Types for each of ...
0
votes
0answers
62 views

Can you deploy inactive picklist values using changeset?

I am aware and it specifically says in the Salesforce Documentation here that you cannot deactivate active picklist values with a changeset BUT, can you import INACTIVE values from sandbox to prod to ...
1
vote
0answers
25 views

Restrict Users from updating one field before another dependent field is updated and Saved

In my Org, there are two interdependent fields named Pacing and Pacing Notes. The Pacing can't be set to Customer-Specific until the Pacing Notes field is empty. I am checking and validating this ...
1
vote
1answer
119 views

I have a new set of picklist values based on the record types of a custom object. How do I enable them 'selected' by default when the org is upgraded?

I have a new set of picklist values based on the record types of a custom object. How do I enable them 'selected' by default when the managed org's package is upgraded? These new set of picklist ...
0
votes
1answer
46 views

Having two controlling field in a object

I have a few field object which is country, weight and postage rate. Each of them is a picklist data type. What I want is, when the user chooses country and weight, it will affect the postage rate. ...
0
votes
2answers
55 views

how can I avoid a for loop when searching against a list in a picklist field

I need to search for a list of strings and match against a picklist field. So far, the query below only works when there is only one string in the query string. Appending more strings does not work ...
1
vote
0answers
27 views

Multi-picklist width collapses in Lightning with SLDS component loaded

I'm converting an org to Lightning and have this markup in a Visualforce page: <apex:inputField value="{!classInstance.opportunity[field]}" required="{!IF(isSaveOnly,...
0
votes
0answers
13 views

Using user language picklist in custom object field

I want to add a field on Opportunity to set the primary language for the customer. Is it possible to use the same picklist as provided in the "Language" field of "User"? What is ...
0
votes
2answers
999 views

Not able to update picklist fields as unrestricted from restricted

The option “ Restricted picklist to the values defined in the value set “ greyed out. I need to unrestricted this field. I am not sure why it is greyed out? How can I unrestricted this field now?
0
votes
1answer
125 views

Update Custom Picklist Values Translations via MetadataService

I have a piece of code that allows me to update custom picklist field values: public static TM_EComUtils.genericResponse addPicklistValuesViaMetadata(String fieldAPI, String sObjectAPI, List<String&...
0
votes
0answers
23 views

How to get translated picklist value of a picklist field in LWC [duplicate]

Is there any standard capability using method/Api/Wire to get the translated value as per user language in LWC. Regards Stay Safe
3
votes
1answer
86 views

How to get Picklist color value (hexadecimal value)?

Assuming we select for each picklist value a specific color (ie not dynamic assignment) how to query the hexadecimal color value in Apex/soql ?

1
2 3 4 5
20