7

The isRestrictedPicklist() method, documented at the link in your question, is what you're looking for.


3

Your comment says you are trying to use a list of strings. The reason you're not seeing any values is because you should be using objects that contain a value and a label property which your strings do not contain. if (state === "SUCCESS") { var leadData = response.getReturnValue(); var selectOptions = []; leadData.forEach(function(item){ ...


3

This cannot be achieved through wired property. You should be using wired function as below: @track value = ''; @track StatePicklistValues; @wire(getPicklistValues, { recordTypeId: '$objectInfo.data.defaultRecordTypeId', fieldApiName: STATE_FIELD }) getStatePicklistValues(result) { if (result.data) { console.log(JSON.stringify(result....


2

In Aura lightning:datatable, it is not possible to have custom components but in LWC lightning-datatable, it is possible to have custom component in table columns. Below are the steps: Create your custom component which has picklist. Create another component which extends LightningDatatable and declare/refer to template. Create the HTML template which uses ...


1

Push won't show the new changes to a @track attribute. You need to actually assign a new value to the @track attribute. Here is a demo I wrote for you. import { LightningElement, track, api } from 'lwc'; export default class App extends LightningElement { @track optionList = [{label:'-- none --',value:''}]; @track value; newValue; newLabel; ...


1

Options attribute value should be like below: <template if:true={EmpList}> <lightning-combobox label="Select an Employee" name="del_emp" class="del_emp" placeholder="Select an Employee" options={EmpList} value={value} > </lightning-combobox> <...


1

Any record in Salesforce can still be referenced as long as it is not fully removed. Deleting a record moves it to the trashbin where it resides until it is automatically removed or by clearing the Recycle Bin. Only the final deletion of a record (and this includes setup records as well) will ensure that no references keep existing. In this case the ...


1

Looks like jquery issue. This can be resolved by Use jquery version https://code.jquery.com/jquery-2.2.4.min.js Use Select2 library from https://github.com/select2/select2/archive/4.0.3.zip Zip both library and upload as single static resource. You can also upload separately. Aura component code will be <aura:component implements="force:appHostable,...


Only top voted, non community-wiki answers of a minimum length are eligible