Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs

Questions tagged [lightning-combobox]

For questions related to the lightning combobox widget

Filter by
Sorted by
Tagged with
1 vote
1 answer
62 views

Why are value and options not populating in a custom dataTable combobox column edit template?

I'm defining a custom column for a Lightning dataTable component to hold a Lightning combobox like this: { label: 'Down Payment Type', fieldName: 'DownPaymentType__c', type: '...
isherwood's user avatar
  • 478
0 votes
1 answer
93 views

Remove blue border from lightning-combobox

I have created an LWC that will be embedded via Lightning Out in a website. I need to apply the styling of the website to the LWC and I am almost done. One thing to do is to change the border of the ...
Andreas Epping's user avatar
0 votes
0 answers
78 views

Lightning Input combo-box with new attribute role not working in my org

Trying to implement the new spring release update: b) The lightning-input component receives a new attribute called role, enabling the creation of accessible combo boxes. Check out the below example ...
Virgo27's user avatar
  • 19
0 votes
1 answer
59 views

Unable to set selected value for combobox in table row

I have a combobox in a column of a custom table that is populated dynamically. How can I set the value selected for the row that the combobox was changed? Currently, when the onchange fires, the ...
user1718612's user avatar
0 votes
1 answer
177 views

How to select the default picklist value for lightning-combobox in lwc?

For a picklist field, it is possible within Object Manager, to select one picklist value as the default value, so that for new records this field is automatically selected in the dropdown. I want to ...
PieterJacob's user avatar
0 votes
0 answers
74 views

How to add style to lightning combobox?

how can I add style to the combobox input and option items? ><lightning-layout-item size="12" padding="around-small"> <label class="custom-...
Yuqi Sui's user avatar
1 vote
1 answer
96 views

how to change the position of the dropdown of Lightning combobox

can we change the dropdown box align with combobox? is it possible? it is like this now. I want it like this <td class="slds-cell_action-mode" role="gridcell"> ...
Neophyte's user avatar
0 votes
0 answers
14 views

lightning-icon is not working on the model window

The code below is a model window, and I am want utility: forward icon to display in the middle of combobox and the button but nothing displays. And for the combobox, the inverted triangle is also not ...
Neophyte's user avatar
1 vote
1 answer
71 views

lightning-combobox with dynamic values causing performance issue

In a managed package, I have lwc with combobox whose options are fields from an object. It calls an apex method that returns the list of fields and then displays them. I have noticed for specific ...
Liron C's user avatar
  • 1,778
0 votes
1 answer
2k views

How to set default picklist value for lightning-combobox?

I have lightning-combobox for which the picklist values are retrieved through getPicklistValues. How can I set default value of this field as the first picklist value? HTML: <lightning-combobox id=&...
coder123's user avatar
  • 107
0 votes
0 answers
192 views

required lightning-combobox does not will not validate

This is driving me absolutely batty - I have a required combobox in my LWC, and validation does not fire in navigating from field to field (as the lightning-input fields do) nor does it stop the save ...
Scott Williams's user avatar
1 vote
1 answer
213 views

LWC - Is there anyway I can push value from 2 @wire into 1 array

I have 2 @wire Apex methods that will invoke code from Apex Controller. Right now the array only has value from the 1st wire (because it get called first) but not the 2nd one. My question is: How can ...
Pam's user avatar
  • 107
0 votes
1 answer
109 views

LWC - Cannot fetch Currency field type to display in lightning-combobox

I'm trying to get all currency field type of a specific object and display it in lightning-combobox but it does not work. When I execute this method with anonymous window, I got the result I want. But ...
Pam's user avatar
  • 107
0 votes
2 answers
330 views

LWC - Async/Await but value hasn't returned

I have 2 picklists. When the first picklist get clicked, it will captured the value and pass to the second picklist. Right now, I'm using async/await and also try to call it imperative but it did not ...
Pam's user avatar
  • 107
0 votes
0 answers
237 views

How to render an array of objects (label,value pair) effectively on a lightning checkbox group functioning as a dropdown?

I need a checkbox group as a dropdown and have the following array formed in LWC JS handleShowingStateFilters(resultSet){ this.stateFilterOptions = []; this.tempArray = Object.keys(...
amitsingh6651's user avatar
0 votes
2 answers
1k views

Lightning Combo box overflowing outside table column

I have added a combobox in lwc using table structure and it is overflowing to the next column. Below is the code I used. <table class="slds-table slds-table_cell-buffer slds-table_bordered&...
Aruna's user avatar
  • 427
0 votes
1 answer
464 views

Setting selected value of a lightning-combobox does not show when inside a <template for:each> tag

I have a LWC that displays anywhere from 1 to n lightning-combobox components. Since the number of combo boxes needed is unknown, the combo boxes are within a for:each directive: <template for:...
mtbIt's user avatar
  • 1
1 vote
0 answers
310 views

Unable to set custom field value in lightning record edit form

I have a button that creates a new case. There are different record types for Case Object and I need to create a record for a specific record type only. I am using lightning-record-edit form to ...
hellking's user avatar
0 votes
1 answer
55 views

LWC looks different in prod environment

Hello guys I made a LWC form embebed in an Aura component in my scratch org and deployed to the production environment. When I was testing two things happened. The first one is related when I scroll ...
user avatar
2 votes
1 answer
993 views

How do I allow custom input in a LWC combo box (or something similar)?

Salesforce offers the lightning-combobox for showing a field with a list of predefined options. When I think of "combobox," I think of a UI widget that offers predefined options but also ...
Chuck's user avatar
  • 967
3 votes
1 answer
15k views

Searchable Lightning Combobox LWC

Hello guys I have a lightning combobox that has like 600 values. I would like to be able to search the values instead of scrolling. My .js code is this one: picklistOrdered = []; connectedCallback(...
TechGuy's user avatar
  • 107
0 votes
1 answer
314 views

can not show values in Lightning Combobox LWC

Hello guys I want to show in a lightning-combobox values from a SObject that has two important fields: Value__c and Key__c. My apex code looks like this one: @AuraEnabled(cacheable=true) public static ...
TechGuy's user avatar
  • 107
0 votes
3 answers
395 views

Save the field Name field in combobox LWC

Hello I was trying to save in a lightning-combobox the field Name from record of an SObject, but it is not working. My apex class: @AuraEnabled(cacheable= True) public static List<String> ...
TechGuy's user avatar
  • 107
0 votes
1 answer
591 views

Method to choose when field is required LWC

Hello everybody I am currently working on a LWC form where I have some fields like inputs, comboboxes... In a combobox field when the user chooses, for instance the option A, an other lightning-input ...
TechGuy's user avatar
  • 107
1 vote
2 answers
2k views

Generate a array with unique values for displaying options in LWC Combobox

I am returning a list of records from Apex (say list of Account object records). There is a text field (CustomTextField__c) on Account object which is in the list returned and needs to displayed as a ...
user126869's user avatar
2 votes
1 answer
366 views

Lookup CSS dropdown-alignment implementation in lightning-datatable

I'm currently having some issues with the lookup implementation that is being used within a lightning-datatable implementation. The lookup bar is being cutoff, and instead pushes the entire table ...
Kevin Yao's user avatar
  • 117
2 votes
1 answer
652 views

lightning combobox dropdown is hidden inside LightningModal

I'm building a lightning Combobox inside LightningModal but the dropdown list is hidden because the lightning modal container is not automatically extended as follows. I already tried the solution ...
Hiroki Yuda's user avatar
1 vote
1 answer
13k views

LWC Import custom picklist field and show it in LWC

I have a custom field (picklist) which is filled with a global picklist values. I want to import it and show it on the screen in the form of combobox (or anything similiar). What I am trying to do is: ...
MarcelloWrites's user avatar
0 votes
1 answer
492 views

Scrollbar in dropdown menu is pinned to bottom by default

I'm new to LWC and I have lots of values that should be displayed in the dropdown (in other smaller dropdowns it's not occurring) it is important because the values are sorted alphabetically from the ...
user124907's user avatar
0 votes
2 answers
572 views

Reactively display data when selecting a value from lightning-combobox

SF newbie here. I have a lightning-combobox component with a bunch of leads. When a user clicks on a particular lead, I want data related to that lead (Name, Company, Email) to be displayed. I'm ...
srrc's user avatar
  • 5
0 votes
1 answer
987 views

Align Vertically Combobox and Lightning Input

I need to align 4 inputs fields that are dynamically build (c-filter-component), they can be either of type combobox or of standard lightning input and maximum 4. The problem is I am unable to align ...
Juan Ge's user avatar
  • 13
0 votes
2 answers
337 views

How to get picklist values of TeamMemberRole field on OpportunityTeamMembers

I have the following LWC but cannot seem to get the Picklist values Javascript import { LightningElement,track, wire, api } from 'lwc'; import { getPicklistValues } from 'lightning/uiObjectInfoApi'; ...
Thomas's user avatar
  • 2,298
0 votes
1 answer
2k views

insert lightning-combobox value to text field using LWC

I want to insert a Lightning-combobox value in a text field using LWC. I have used below syntax but it's not working. Please help me out. html file <lightning-combobox data-id="...
Pravindra Singh's user avatar
0 votes
1 answer
113 views

How to get distinct value as option in Combobox?

HTML : <div class="slds-box slds-p-around_none slds-m-top_x-small slds-m-bottom_medium slds-m-horizontal_none"> <lightning-layout vertical-align="end"> &...
user avatar
0 votes
0 answers
1k views

How to set default picklist value on Custom combobox using LWC

Child lwc JS : setSelection() { const selectedItems = this.getSelectedItems(); let selection = ''; if (selectedItems.length < 1) { selection = this.placeholder; this.selectedOptions = []; } ...
Farkous's user avatar
  • 27
0 votes
1 answer
2k views

how to get event.detail values from combobox multipicklist using LWC?

multiSelectcombobox HTML : <template> <div class="slds-form-element"> <label if:true={label} class="slds-form-element__label"> <abbr if:...
Farkous's user avatar
  • 27
1 vote
0 answers
375 views

This is a parent-child communication question from LWC combobox!

I'm a beginner at lwc! When you select an object from a combo box created by a parent component, you want to load the fields corresponding to the selected object into the combo box created by the ...
Yeonbi Ji's user avatar
0 votes
2 answers
4k views

How to set default value in Combobox using LWC?

@wire(retrieveFields) listViewResults; get listViews(){ if (!this.listViewResults?.data){ return []; } let tempListViews =...
user avatar
0 votes
1 answer
328 views

combobox Value Label not showing properly

I have a combobox that looks the following In my JS: timeValue = 7; options =[ { label: 'Last 7 days', value: 7}, { label: 'Last 30 days', value: 30 }, { label: 'Last Quarter', ...
Ben2pop's user avatar
  • 425
1 vote
1 answer
870 views

Invalid key error, when clicking on a combobox from a nested component

I have an lwc that displays content differently based on data type, filterField.html (simplification): <template> <div if:true={isText}> <lightning-input value={_value} ...
Arhael's user avatar
  • 45
0 votes
0 answers
699 views

Not able to retain lightning-combobox selected value on community in LWC

The selected lightning-combobox value on community is getting saved in backend under Trial object but not able to retain the value on UI level in community on "Save & Next" button HTML ...
Anu's user avatar
  • 1
0 votes
1 answer
713 views

showing a list of results showed while user is writing something in search box

I'm trying to create a search box where the user write something, and while he do that a listbox with all the matching results appears (like in the figure below) (!! I'm asking only how to show the ...
MashaMasha's user avatar
0 votes
1 answer
448 views

lightning-combobox throwing error on selection

I have a lightning-combobox which gives the options to select a field from an fetched apex collection. The component loads without any issue on the page as soon as I select an option I get a page ...
Thomas's user avatar
  • 2,298
0 votes
1 answer
2k views

Set different options in lightning-combobox in for:each template

I have a component that lets you select different troubleshooting scenarios that have specific outcomes related to them. The logic is as follows: User selects a scenario in a combobox. Different ...
Marcos Carri's user avatar
1 vote
2 answers
2k views

Disable some options of a lightning-combobox

Is it possible to disable specific options of a lightning-combobox like one can do with the attribute disabled of the option element in standard html (example below) <select> <option>1&...
Joshua's user avatar
  • 15
0 votes
0 answers
767 views

How to prefix LWC Combobox items with several white spaces?

I've been using the LWC Combobox to implement a requirement that involves having indentation (prefixing with white spaces or just padding-left) on the Combobox items/options. The idea is to have a ...
angielaz's user avatar
0 votes
2 answers
2k views

How to convert string with comma-separated values to lwc picklist

I am a beginner in LWC, hence please pardon for any mistakes, and would appreciate suggestions to improve. I am trying to create an LWC picklist (lightning-combobox) with options that are basically ...
cjprad-sfdc's user avatar
0 votes
2 answers
577 views

lwc combo box not binding values

I have a array like below in lwc js. I need display the value in combo box. Currently I am passing the variable which assign the prevoius array like below. But it's not displaying value???? in combo ...
Basu's user avatar
  • 23
0 votes
1 answer
360 views

Problem with LWC that should show a list of answers for each Question

I made an LWC that should show a list of question with some answers for each question under the Campaign Member, but after managing to retrieve the questions and show them in the HTML, I don't manage ...
StormB4T's user avatar
0 votes
1 answer
496 views

Access to option data in lightning combobox?

Given this code: HTML : <lightning-combobox name='Test' label='Testing' placeholder={serviceReopenTest} options={serviceOption} onchange={handleServiceChange} value={idServiceOption} ...
CPS's user avatar
  • 345