Questions tagged [lightning-combobox]

The tag has no usage guidance, but it has a tag wiki.

Filter by
Sorted by
Tagged with
0
votes
2answers
226 views

LWC: how to clear previous selection from lightning-combobox

I have a data entry form using lighting-input and lightning-combobox. When the user submits the form, I want to clear all fields so the user can make a new entry. I'm using querySelectorAll and ...
1
vote
2answers
243 views

How i can get the label of the selected value in Combobox - Lightning Web Components?

I'm developing a LWC Combobox and I want to get the label of the selected value in the handleChange() method, not the id. I filled the combobox with JSON Items in this form : {value :'Id', label:'...
0
votes
1answer
92 views

How to Build dependent picklists in Lightning Web Components?

I need to control a product Combobox by Pricebook Combobox in Lightning Web Component I've created an LWC that contains two comboboxes: Pricebook list and Product list. I was able to get the list of ...
0
votes
2answers
217 views

Pick List values added dynamically in Java Script are not reflecting in Lightning:combobox LWC

I am trying to pass a list of pick list values dynamically to lightning-combobox , but the values are not rendering in the list. Below is the sample code i am writing. JS Code: @track EmpList= [{ ...
1
vote
1answer
451 views

Option to select none in picklist fields lightning-combobox - LWC

Using lightning-combobox i am able to display required picklist values but trying to achieve below two options. Allowing users to unselect back to none from the selected value As of now if user ...
0
votes
1answer
167 views

How does one populate a Lightning component combobox with a list of records (id/name)?

I have a Lightning component in which I want to display a list of records related to an Account. I currently have this (but it doesn't work): My Component display: <aura:if isTrue="{!not(empty(v....
2
votes
1answer
232 views

Get picklist values on record type(not a default) without hard-coding of record type id and object have more than one record type

My requirement is to get picklist values from a record type if the object has more than one record type. Some examples are given with default record value passed. But in my requirement record type is ...
1
vote
3answers
913 views

Callback function in LWC

I have 2 picklist(Combo-box). On change of value in the 1st combobox - depending on the value returned from the controller - i need to render or hide the 2nd combobox. I'm using refreshapex to get the ...
1
vote
2answers
473 views

fire @wire on an event change LWC [closed]

I have a picklist in a combo-box, on change of the picklist value @ wire method should fire is it possible or what is the work around??. As per the below example when this.l1productId value changes in ...
2
votes
1answer
437 views

Dependent Combo-box in LWC

I have a combo-box in LWC - whose values get populated on load of the page with the help of @wire. The code is as follows: @wire(fetchL1ProductValues,{userType:'$userType',accountId:'$recordId'}) ...
0
votes
0answers
488 views

Convert Select list to Combo box in LWC

I have created a select list in LWC. The code is as follows :- <select onchange ={onSelectProductL1} class="slds-select l1Cmp" data- id="select-01"> <option value="">--...
1
vote
1answer
156 views

Is possible to use lightning:combobox with grouped options?

In the SLDS documentation, it is stated the possibility to have a combobox with grouped options. It is possible to achieve a similar result with the lightning aura component lightning:combobox? In ...
2
votes
2answers
3k views

LWC Get Pick-list Field Values

In LWC, is it possible to get a pick-list field's possible values? I'm writing a component that is embded into a lightning record page. I need my component to be able to load the record from the page,...
0
votes
3answers
1k views

Multiselect Combobox

Is it possible to configure the combobox combo box to allow multiple selections? I tried this method: import { LightningElement, track } from 'lwc'; export default class ComboboxBasic extends ...
2
votes
1answer
269 views

How to query for lightning-combox items in a lwc-jest test?

I can reference a collection of p tags in lwc-jest, but am not able to do so for a lightning-combobox's items. This gives me values: const cats = element.shadowRoot.querySelectorAll('p'); expect(...
0
votes
1answer
80 views

Why i can't use variable name other then “value” to save my selected value in Combobox (Lightning Web Component)

I'm working on lightning Web Component and i have a combobox. In the Template file i have @track value='' to save my selected value when i change the variable name from @track value='' to @track ...
4
votes
4answers
3k views

Lightning Web Component Combobox

i'm developing lightning web component and i want to fill or populate my combobox from result of apex method so how i can in the html file get the result from JavaScript file and put them in the ...
0
votes
0answers
89 views

How do I resize a Lightning component dropbox?

I have a Lightning Component with 2 drop boxes and some buttons. The problem is the one dropbox has about 12 items in it and ends up looking like this: which isn't good. I either need to limit the ...
0
votes
0answers
592 views

lightning combobox Set Focus and Handling Up and Down Keyboard Events

Hello I am trying to create a autocomplete using lighting components, The first attempt was to use the lightning:combobox but this doesn't allow me to use the input box such as input of type search. I ...
0
votes
1answer
1k views

Lightning combobox options attribute not showing any options!

I am trying to populate the options attribute of the lightning combobox to the values of a component attribute. The channels component attribute has all the values in it, but for some reason it doesn'...
0
votes
0answers
383 views

Why does selecting an option on lightning:combobox not actually select anything?

I am using several lightning:combobox components on a form and notice that whenever I specify a field (e.g. value="{!v.contactFields.Gender__c}") for its value, it does not select the option I choose. ...
3
votes
1answer
2k views

Dynamically setting value of lightning combobox in javascript?

I have dynamically created lightning:comboboxes that are instantiated in my JavaScript controller for my lightning component. In my callback function after the component is created, I want to set the ...
0
votes
1answer
250 views

How to get more than just the value of a selected option in lightning:combobox?

I have a lightning combobox with data set up kind of like: [ { 'label':'blah', 'value':'bleh', 'otherThing':'test', 'finalThing':'another test' }, { ...
3
votes
2answers
4k views

Styling lightning:combobox drop down to not hide inside modal and extend modal length?

I am using the lightning:combobox standard component, and created a little UI that I then put in a modal window. It looks fine except for this issue.... I the drop down hides inside the modal ...
1
vote
1answer
788 views

Lightning combobox: sometimes is not selecting, option selected

Look to this video which tried to select an option and sometimes is happening and others not. Really weird behaviour. Booking Mode Select (starting at 0:22 sec): http://recordit.co/lnma8c6Okb <...
0
votes
1answer
159 views

Event on hovering over an option in a lightning:combobox

Is it possible to register an event on an option hovering in lightning:combobox? The best resource about the lightning:combobox I was able to find is this. It tells me nothing about the event I ...
0
votes
1answer
481 views

lightning:combobox change icon

If you notice the lightning:combobox component, you will see that there is an icon pointing downwards on click of which list box opens. Is there any way to change the icon pointing upwards ONLY when ...
0
votes
1answer
304 views

lightning:combobox remove icons from listbox

If you notice the lightning:combobox component, you will see that inside the container of list options, there is an icon just in front of the options. Is there any way to remove the icons?
2
votes
1answer
557 views

lightning:combobox readonly atrribute is not working

According to the lightning:combobox documentation readonly should be set to false, but in the markup it renders like this: <input type="text" role="textbox" ... readonly="true" class="slds-input"&...