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
2
votes
1answer
65 views

State and Country/Territory picklist enabled

Why is apex Trigger unable to get value from Country/BillingCountry field in a BEFORE INSERT/UPDATE trigger when State and Country/Territory picklist enabled and data created from salesforce UI in ...
2
votes
1answer
89 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,...
2
votes
2answers
386 views

Can I “Exclude Values” of a dependent picklist if I deploy via a Change set?

I am trying to deploy two picklist fields via Change Set Management, so that I can get the new changes(Include Values/Exclude Values) in the Field Dependency. After the deployment what I found was: ...
2
votes
2answers
584 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. "...
2
votes
1answer
3k views

use priorvalue function

if opportunity type(this is Picklist) is base or solutions and stagename(this is also picklist) change Order Pending to Lost then I want error message from validation rule is you cannot manually ...
2
votes
1answer
843 views

How can I hide/show a text field based upon a multi-picklist value?

I would like to do this by replicating the Contact page in Visualforce and then overriding the original Contact layout with the Visualforce page, which would include the code to make hiding/showing ...
2
votes
1answer
149 views

Need assistance with formula syntax

Trying to utilize a picklist value to modify a territory assignment identified by state. My original formula, very simple: IF(LEN( {!State})=0, "None", IF(CONTAINS("AK:AZ:CA:HI:NV:NM:OR:UT:WA", {!...
2
votes
1answer
1k views

Multi level multi select dependent picklists

I have an interesting question which I am having trouble solving. The table below will show you better what I have to do. Based on a multi-select picklist (column OU in the table above) the user is ...
2
votes
1answer
64 views

Unique Picklist Values

I have a visualforce page that allows customers to schedule an appointment with me. The fields I have are subject, description, date, and time. Since I'm only available at certain time blocks ...
2
votes
2answers
963 views

How to Populate text field values onto a lookup/picklist?

Subscribe system object has a text field "legacy ID". 1 account can have many unique legacy ID. I have a new object Sub Details wherer I want to populate a picklist/lookup containing all legacy ID ...
2
votes
1answer
628 views

Removing Picklist items from multiple record types

Is there a way of removing picklist items from multiple record types in one go, just as there is a way of adding picklist values to an object with multiple record types. For example I have ObjectA__c ...
2
votes
1answer
4k views

Dynamic picklist values in visualforce based on users profile

I have status field with picklist values draft,send to Rep,Return to Manager,Complete.I want to show only one picklist value (Return To Manager)for one profile (Rep profile) when user is on Send To ...
2
votes
4answers
2k views

Dependent picklists not editable in visualforce page

I'm facing some issues regarding some dependant picklists. I need to show them on a visualforce page, but I need some of the picklist to be not editable, so, as they can't be added as apex:...
2
votes
1answer
178 views

Lwc getPicklistValues not working on OpportunityLineItem

I am trying to get picklist values for the field on OpportunityLineItem, but getting {}. import { LightningElement, wire } from 'lwc'; import { getPicklistValues } from 'lightning/uiObjectInfoApi'; ...
2
votes
2answers
352 views

How to create a reusable picklist component

I have created a lightning web component which is a pick-list. My intention is to pass objectApiName and fieldApiName as parameters and then render UI accordingly. So that I can reuse this component ...
2
votes
2answers
855 views

RecordTypes, Dependant Picklist values within Lightning Components

We have built a Lightning Component for displaying OrderLines__c (custom object). Since we need to utilize picklist values we could not use the lightning:datatable. I found a great guide on sfdcmonkey....
2
votes
1answer
581 views

Check picklist value in apex code - just check api name or create custom metadata?

In my apex class and trigger code I have If statements based on picklist values. Using picklists in code I know uses the api name of the picklist value. My question is, is it ok to just use the api ...
2
votes
1answer
546 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....
2
votes
1answer
42 views

Visual Force page is working in preview only

I created my first APEX component which takes values from picklist and displays them in a autocomplete When I test my page in preview it is working fine, however, when I put the component in the page, ...
2
votes
2answers
937 views

Validation Rule on picklist under opportunities

There are 2 requirements: standard users can’t update the status of a record beyond “open won” (so that only SF Admins or auto processes update “registered” and the stages beyond registration. ...
2
votes
4answers
1k views

New picklist value not being added to upgraded package

I have a managed package that contains a picklist with some values (static values -not global). As my solution expanded I added a new value to this picklist, and created a beta package. After ...
2
votes
1answer
2k views

Deployment error for picklist values

In phy.object file i have included below things. <recordTypes> <fullName>Physician</fullName> <active>true</active> <label>Physician</...
2
votes
1answer
547 views

Picklist apex:inputField Inexplicably Renders as Disabled

I have an apex:inputField control bound to a field of type picklist on a visualforce page. Like so: <apex:inputField value="{!myObj.DependentPicklist__c}" required="true" /> Inexplicably it ...
2
votes
1answer
62 views

Not able to select year of birth in standard page layout not in visual force page

Not able to select year of birth in standard page layout. Calendar years don't go back before the following year year -
2
votes
1answer
95 views

Extension package cannot add picklist values to a base package's field. Really?

My managed package EXTENSION is extending the package BASE. BASE contains object CustomObject__c with picklist field pkl_Status__c. In EXTENSION I add some new RecordTypes for CustomObject__c and ...
2
votes
2answers
1k views

Error on selecting value from dynamic picklist

I am getting error while selecting value from a dynamic picklist. The picklist values are generated on form load by selecting the distinct values for a field in an object. Class public SET<...
2
votes
1answer
278 views

Picklist - Show value not in list

Very new to SFDC so please excuse me if I don't use the right terminology. I have a date field on a form. It shows both historical data and new/current data. The business rule is that if the user can ...
2
votes
1answer
1k views

Display default picklist value as Read-only on Custom Object

I am fairly new to Salesforce and recently came across an interesting problem for which I have been trying to find a solution. My app has a Custom Object called MyCustomObject__c with a VF named ...
2
votes
1answer
741 views

How to use Data Category Visibility in a data category picklist that generated from code

Problem description: I have a picklist for data categories which I am generating dynamically from apex code, currently because I'm doing it from code using Schema.describeDataCategoryGroups and ...
2
votes
2answers
763 views

Validation Rule Lead Category required based on Lead Source selection

I have Lead Source as a picklist with these options (Distribution Partner, Personal Referral, Event/Trade Show, TBP Event, Website, Other) I have created a custom text field called Lead Category. I ...
2
votes
1answer
1k views

Set value of a dynamic picklist on VF page load

I have overridden the new Opportunity page with a Visualforce page, which means there are 3 main routes for the Opportunity to be created: From an Account page From a Contact page From an Opportunity ...
2
votes
1answer
628 views

problem creating a dependent picklist

I want a user to be able to firstly select a value from a picklist and then to be able to select values in a lookup. For example, if the user selects the value "campaign" from the lead source ...
2
votes
1answer
400 views

Basic Validation rule which has baffled me

Yet again this has simple validation has me baffled Aim – If mailing country = Canada, then Canada_Email_Consent__c needs to be captured, if mailing country not equal to Canada then ...
2
votes
2answers
669 views

How do I write a formula using a picklist and a date + value from picklist

I have a pick list that contains service level A, B, C. I need to create a formula that uses the service level from the pick and custom field (last review date) to populate field (Next review date) ...
2
votes
1answer
196 views

How to populate value from account into new created opportunity on creation?

We have a custom Pick List field on Account: Payment Terms The same pick list field (but a different one) is oppty, I need that when creating a new oppty, the value from the account will be populated ...
2
votes
1answer
129 views

Picklist control to create a new record

I am working on a project to manage the human ressources, well my question is: how can I control a picklist to create a new record. Exemple: I go to Application tab, wich contain a picklist, among ...
2
votes
1answer
3k views

what is the syntax for selecting multiple picklist values using ISPICKVAL?

I want to know what is the correct formula syntax for selecting multiple picklist values? For example ` and(isblank(First_Submitted__c),ISPICKVAL(StageName, "Submitted,Awaiting Recontract,Won Re-...
2
votes
2answers
8k views

How to update picklist value dynamically from Custom object?

I have two custom objects 'Object_1__c' and 'Object_2_c', there is a custom field 'Type_c' in 'Object_1__c' which is a Picklist datatype . whenever a new record is submitted in 'Object_2__c' it should ...
2
votes
1answer
2k views

Creating a VF page dependent picklist error?

I am creating a VF page, on that we need to have 13 picklist fields and 13 dependent picklist fiields. We have created 10 picklist fields and 10 dependent picklist field. For creating 11th dependent ...
2
votes
0answers
20 views

lightning-record-edit-form: display text field as a custom picklist?

I've created a custom object where the user manually enters a locale value (ex: en_US, es). Instead of letting the user manually enter a locale, I'd like to provide the user with a combo box of valid ...
2
votes
1answer
289 views

The flow failed to access the value for myVariable_current.Account.Owner.UserRole.DeveloperName because it hasn't been set or assigned

I am getting these two process builder error's Error element myDecision (FlowDecision). The flow failed to access the value for myVariable_current.Account.Owner.UserRole.DeveloperName because ...
2
votes
0answers
45 views

How to get picklist values and translations using Aura and Apex?

Background: I was using a an aura lightning:recordEditForm containing a picklist field. This component will automatically detect user language and use the translations you have set for that field. ...
2
votes
1answer
134 views

LWC picklist value undefined on initial load

I have a lightning-input-field inside a lightning-record-edit-form, used to create records. The field-name is a picklist field which uses a Picklist Value Set, with one default value. When the form ...
2
votes
1answer
105 views

Lightning Component not updating records

I need help getting my muddled-together-lightning-component to update existing records. I do not really know what I'm doing so it's a wonder I've made it this far :) My component lists all child ...
2
votes
1answer
226 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 ...
2
votes
1answer
303 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
1answer
555 views

REST API: create dependent picklist values

I am aware that it is possible to create dependent picklist values using the Metadata API but I want to use the REST API. I know how to create triggers, classes, and pages but I can't wrap my head ...
2
votes
0answers
1k views

System.DmlException: INVALID_OR_NULL_FOR_RESTRICTED_PICKLIST

I am getting the below error: Errors Treatment Code: bad value for restricted picklist field: 95972 System.DmlException: Upsert failed. First exception on row 0; first error: ...
2
votes
0answers
333 views

Deployment failed: Component Errors: Duplicate picklist value:Yes_or_No - No

Issue: When validating a change set of 300 items into production, I received one component error: API Name: Opportunity.New_Integrated_Payments_Customer | Type: Record Type | Line: 5028 | ...
2
votes
3answers
3k views

Binding a click event to document Lightning Component

I am using SLDS Picklist in Aura Component, I am trying to close the picklist when user clicked outside the picklist. I am trying to bind a click event to document and call the action to close the ...

1
3 4
5
6 7
19