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

Constrain child picklist based on parent picklist

I have a Case object which has 'Category' picklist with values 'Plumbing','Electrical' etc to handle the issue customer is reporting. Need to have a child object 'Parts' and it needs a Parts Picklist ...
1
vote
0answers
24 views

How to filter records according to a specific value of a picklist in visualforce?

I am in a situation where I need to create a picklist with records of a subject in a visualforce page, and based on the selected value, show the products related to it. How can I achieve this? I get ...
0
votes
0answers
15 views

How to correctly implement the selection of an account in the picklist so that it is correctly recorded in the new contact?

I have a form to add a new contact and am having trouble recording if I fill in the "Account" field. If you do not fill it in, then the new contact is added to the database without any ...
2
votes
0answers
31 views

When to use FieldDescribeOptions.FULL_DESCRIBE in SObjectField.getDescribe(options)?

Background Playing around with the SObjectField class has led me down a rabbit hole in wondering why and how I can make use of the getDescribe(options) method where options is a FieldDescribeOptions ...
0
votes
1answer
13 views

Problem with aura and JS controller

I have a little problem. I have a simple program that gets a value from picklist , and using this value my program must show all values from the database Thats my code COMPONENT <aura:attribute ...
0
votes
1answer
15 views

Mapping Webform picklist values to different values on Picklist in Salesforce

I'm not a developer by any means, but better want to understand what is feasible out of the box with Salesforce. Scenario is I'm thinking of a web form that will act as a landing page for customer ...
0
votes
1answer
23 views

How to add `Type` field to `Event` object

I am trying to add Type field to the Event object ( https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_event.htm ) object. I have tried the ...
0
votes
1answer
22 views

Validation rule to prevent change if field has specific value

I have a situation where I want to prevent (some) users from changing a picklist field once it has been set to a specific value. I'm trying to create a validation rule that fires if the field is ...
3
votes
1answer
21 views

Error when generating package version with values in account standard picklist

I have a couple of values on the Account's Type field in a managed package. A couple of days ago I generated a package version successfully, but now when generating a new version I'm getting this ...
0
votes
0answers
10 views

If I have a record type with picklist fields inside, how can I extract the enabled and non-enabled values ​from them through a soql query? [duplicate]

If I have a record type with picklist fields inside, how can I extract the enabled and non-enabled values ​​from them through a soql query?
0
votes
1answer
32 views

How check with SOQL if a picklist value is available or not for a specified record type

How check if a picklist value is available or not for a specified record type ( through SOQL)? Thanks in advance
0
votes
1answer
15 views

How can I create picklist field on a object, where the values/options of picklist should be the fields of another object?

I am new to salesforce and I have been trying to find answer for this requirement related to our application. Basically I have a Custom Object Field_Config__c, on which I want to create a picklist ...
0
votes
0answers
21 views

Tooling Api - bypass the Duplicate Label Error

I'm trying to update a global value set, using Tooling API. When I'm trying to insert a new value - if its label contained already in my old values or in my list which I'm about to upsert, Its throw ...
0
votes
0answers
15 views

Country and state picklist with lightning web components

How can I capture the country and state picklist in lightning web component picklist input? Please help me to give some guidance. Thanks Sunil Kr. Gupta
0
votes
0answers
7 views

How Standard component picklist value change event fill the textbox values?

BankTransaction(detail) and BankAccount(master) has master-detail relation, I want the transaction standard page when creates a new record, bank-Account picklist change event fill daily-limit and ...
0
votes
0answers
57 views

LWC Datatable Picklist Dropdown is hiding below

I have been trying so long to solve this issue. I am extending the LWC native datatable with picklists. The dropdown is hiding below in the bottom and is not properly visible. Please suggest me a way ...
0
votes
2answers
48 views

SFDX picklist raising Duplicate Label error

We have some picklist values (in various places both as part of a custom field and as a global picklist value set) that look something like this: <customValue> <fullName>1</fullName&...
0
votes
0answers
18 views

Dependent Picklist Values not fully available

I have an aura component and it is designed to be used with case. The issue is when user opens the form and changes a controlling picklist ("Type") the dependent picklist ("Sub-Type&...
0
votes
1answer
42 views

Unmanaged package missing standard field picklist while packaging

While creating a unmanaged package from sandbox, some custom stuffs are not deployed. a) Its missing order status custom picklist values. b) Custom Action link and buttons are not set by default to ...
0
votes
1answer
33 views

How to manage picklist values of a field in Salesforce?

Here is the scenario where I am strucked: In OSR object, there is a picklist field 'Status'. In this field, I have 5 values(Not Submitted,Open,In Progress,Completed,Rejected) but I want to display ...
0
votes
1answer
173 views

Picklist values from Apex List LWC

Looking for some examples of how to pass values from Apex List,generated in Apex class, to LWC picklist. My picklist is : <lightning-combobox name="progress" label="Object" ...
1
vote
1answer
66 views

Restrict Picklist values without record type

The situation is as follows: I have a picklist on Leads derived from a global value set. However, I don't want to show all value from the global value set. Is it possible to achieve this without ...
4
votes
2answers
102 views

When did PicklistEntry label become null?

Used this code to get PicklistEnry list from field and get Label from it: DescribeFieldResult res = Organization.getSObjectType().getDescribe().fields.getMap().get('OrganizationType').getDescribe(); ...
0
votes
2answers
58 views

The ShippingStateCode field contains 21, which is not an available state

I changed some integration values from the country / state pick list: When I try to insert a record by integration, I get the error: "The ShippingStateCode field contains 21, which is not an ...
0
votes
0answers
26 views

Choose what set of values a picklist draws from based on another picklist

here's our situation: We want to associate an Account with multiple counties throughout the US (and these counties could come from multiple states) Ideally we'd have one giant multi-select picklist ...
0
votes
1answer
63 views

(Sobject) '{!Record.Field__c}' is a picklist field.'Test' is an invalid field value

Recently I have added a new value for a global value set that is being used in a picklist field for an sobject. The field is required, restricted, and has the new added value as the first and default. ...
0
votes
0answers
26 views

Dependent picklist Inclusion/Exclusion values metadata deploy not updating

I have two custom fields (both picklists) one is controller the other. I have made some changes to the included/excluded values in one sandbox, and am attempting to deploy it to another. When I pull ...
0
votes
0answers
89 views

Multi-select picklist (field not available for formula in reports of standard object)

I would like to build a row-level formula with a multipicklist in a report of a standard object. But I can't even find/select the multi-select picklist field. Same issue with multi-picklist field of a ...
0
votes
0answers
28 views

How to get available pick list values per RecordType using the REST API

I am currently investigating what is the best way to get the list of available picklist and global picklist values per RecordType from the Lightning Platform REST API (https://developer.salesforce.com/...
0
votes
1answer
32 views

Validation For Picklist [closed]

I have picklist Name Status__c and values are Active, Canceled, Closed And other filed is Amount__c. My requirement is when I choose Canceled or Closed values from Picklist the Amount filed should not ...
0
votes
1answer
79 views

Multi-select picklist issue

I would like to build a row-level formula with a multipicklist in a report. But I can't even find/select the multi-select picklist field. When I copy the Api Name of the multi-select picklist field ...
1
vote
1answer
61 views

Retrieve Globalvalueset without Object_API_Name and Field_API_Name

We used to retrieve Picklist values in Apex through and object and a field like this : Schema.DescribeFieldResult F = <Object_API_Name>.<Field_API_Name>.getDescribe(); Schema.sObjectField ...
2
votes
2answers
322 views

How to deploy picklist field whose value set was changed from local to global?

I'm unable to deploy a picklist field that was promoted to a global value set to my production environment. The global value set, and the new field in another object that uses it are both OK, but when ...
0
votes
1answer
52 views

How Add new value in a Custom Picklist with APEX

I am writing an apex method where I have to add picklist value dynamically with apex code. I have followed many websites but not able to get this. Please check my code below. public with sharing class ...
2
votes
1answer
140 views

onchange event does not trigger on Multiselect picklist in LWC

Goal is: Based on Multiselect Picklist value selection/deselection, I want to hide/show certain text area fields on my LWC form. Below is my LWC: HTML: <template> <lightning-record-edit-...
1
vote
0answers
26 views

Can we programmatically determine Custom Metadata Type picklist values?

I would like to create a Custom Metadata Type picklist, and I want the values of the picklist to programmatically display the names of user Roles in the org. So if someone adds a new user Role, the ...
0
votes
1answer
63 views

Salesforce Picklist value to hide --None— in lightning version

Salesforce Picklist value to hide --None-- in lightning version: For the same issue, there is a solution that making the field as mandatory on the pagelayout and defaulting any one picklist value will ...
0
votes
0answers
24 views

Using Includes in a Function to show block if included in a Picklist [duplicate]

I'm intending the following: • If the system_picks field includes the text "Medication Dispenser", make the div with the id "ifYesMed" visible. • Otherwise, hide the div "...
0
votes
1answer
29 views

How to bind data in custom picklist field in LWC

can anyone help me what I need to change to bind the data to a custom picklist. My component is called in a quick action and pass the record Id and get the lead details and show it on the page. ...
0
votes
1answer
26 views

Values not getting populated in custom picklist

I have created a custom lightning page using Lightning web components, having a custom picklist in it, and I am trying to populate the values in the custom picklist on the click of the custom lookup ...
0
votes
1answer
209 views

DEBUG|Insert failed. First exception on row 0; first error: INVALID_OR_NULL_FOR_RESTRICTED_PICKLIST, bad value for restricted picklist field

I have a record type picklist on Case object. When I create case via email-to-case that works fine without any issue(I have some APEX code related to that) Issue: The problem is when I write test ...
2
votes
2answers
395 views

Get custom Picklist value in LWC without Record Type

I have created a custom Picklist in PricebookEntry and trying to get the Picklist values in LWC. All the solutions I found needs to pass the RecordTypeId to get the list. @wire(...
1
vote
1answer
117 views

Can we query State and Country/Territories Picklist via SOQL? [closed]

We need to check the validations manually in Batch Apex while creating SF Accounts? We have a scenario where we store all the data in our Custom Object (brought the data from the third party). In a ...
0
votes
1answer
32 views

Mirroring of single picklist value in all picklists in nested aura iteraton

I have used an aura iteration to create a table and I have a picklist field inside that table which uses an aura iteration itself. The problem here is that whenever I select the value of any one of ...
0
votes
0answers
37 views

Keep Picklist values in a flow when redirecting

I have a flow to create a lead record. I have several fields, some of them are picklists where i have 2 choices, one choice for --None--, and another choice with the values of this field. For example, ...
0
votes
0answers
23 views

Unable to get option text name in controller js [duplicate]

<lightning:select name="levelrate" aura:id="recpickVal" class="level" label="Select Tier" onchange="{!c.tierRateChange}"> ...
0
votes
1answer
42 views

Use case for parts and repairs

I have a use case that requires calculating "repair costs" on Maintenance Request Objects (I am calling it MR 2). The partname and partcost are fields in a Parts Object. There are about 100 ...
2
votes
1answer
193 views

Dynamic Picklist for lightning-combobox

community. I got a question about two custom fields with type Picklists and lightning-combobox. Suppose combobox 1 shows Picklist 1 value while combobox 2 shows Picklist 2 value. <template> &...
0
votes
0answers
32 views

How to render picklist values according to those available in the related object?

I am a newbie to salesforce and I am doing a project on hospital management system in it. I have Objects for Hospitals, Wards & Patients. Patient is in a lookup relationship with Ward and Hospital....
0
votes
0answers
14 views

Sending Email To All Contract Members In Picklist Field

Currently in our organization when a contract is reaching a certain date an email is sent out to certain values in a picklist Contract_Team_Member__c field such as Contract Owner and Contract Manager. ...

1
2 3 4 5
19