Questions tagged [lightningselect]
The lightningselect tag has no usage guidance.
34
questions
0
votes
1
answer
30
views
Issue with options in lightning-select from js
I am learning to build some basic lwc and I am struggling with dynamically putting lightning-select options from JS.
Here's the html:
<lightning-select
name="distribution-...
0
votes
0
answers
63
views
How do I remove the gap between a label and a lightning:select
In order to have a bold label, I separated it and hid the label on the select element.
However, it seems to leave the label space. (This doesn't happen with lightning:input elements).
<lightning:...
1
vote
1
answer
439
views
How can I develop a select all/deselect all for duallistbox in aura?
I'm building an AURA component that has dualListBox that is dependent on on lightning:select (https://prnt.sc/mc05yPEzmBO7), so based on the value selected on the lightning:select I populate the ...
1
vote
1
answer
3k
views
Why is the selected value not displayed in the "lightning-combobox"?
//html
<lightning-combobox
name="selectedYear"
value={currentYear}
placeholder="Select Year"
options={...
0
votes
1
answer
4k
views
How to set a default value on Lightning Component Option Select without changing the order
Can someone help me with this line of code as I am still new to Development and learning it. On the below lightning component code, the default value shows as "Call" and now the business ...
0
votes
0
answers
606
views
on edit picklist value is changing LWC
I am using a dynamic custom picklist which i am using it in lightning datatable. On load i am getting the correct values
when i click edit (custom one) the picklist value is changing the last value ...
0
votes
2
answers
3k
views
Not able to select multiple picklist values using lightning:select
Lightning Ui namespace is deprecating soon hence we are migrating Ui namespace tags to the lightning namespace. We have used the below tag to select multi picklist values with the Ui namespace. Now ...
0
votes
1
answer
2k
views
How to pass selected picklist value (map) to lightning controller
I have a lightning component which generates picklist values from a map. How do I pass the selected value from the lightning select to the controller.
I have the following but get: undefined on ...
0
votes
1
answer
22
views
Force databind synchronization on lightning select?
I am having a problem where a lightning select component definitely has a value other than the first item selected, but in the js helper method when I am calling
var temp = component.find('...
0
votes
2
answers
2k
views
Searchable lightning:select Component
Is it possible to have search functionality for a lightning:select component within an aura:iteration?
I'm looking for the following picklist to have a search as there will be lots more options being ...
2
votes
2
answers
7k
views
Populate LWC Select with values from values in a record field [closed]
I want to provide users with options in a LWC select that are the values in a records field. For example, if a custom object has a field of Category. The Category field has several options that are ...
-1
votes
1
answer
1k
views
unable to get dynamic picklist values in lightning:select [closed]
I'm writing a lightning component that create rows dynamically and there a field to display picklist values in it. Currently my issue is that, though the values are getting fetched as expected, I'm ...
0
votes
1
answer
884
views
How to pre-populate lightning:select field?
I'm a new developer and would appreciate any help with this question.
I am trying to pre-populate a lightning:select field based on a variable in the URL.
I am able to dynamically generate the list ...
0
votes
1
answer
989
views
lightning:select not able to update values
I am not able to show value which is in the record empRecord.State__c
even thought the logs show that it is retrieving properly.
Here is my code -
<lightning:select ...
0
votes
1
answer
145
views
Lightning <option value=""> not displaying
In the lightning documentation it states that I should be able to set a default value with the <option value=""> inside of a lightning:select. When I attempt to do this, my option value gets ...
0
votes
1
answer
270
views
can we have select2 behavior in lightning components
Is it possible to provide search mechanism in picklists with lightning component as shown in image?
Please let me know if anyone has idea.
4
votes
1
answer
949
views
Cannot use getParam to get values from onchange event
I have a number of <lightning:select> components in an iteration like so:
<aura:iteration items="{!v.data}" var="obj">
<div class="slds-grid">
<div class="slds-size_1-...
0
votes
3
answers
699
views
Lightning:Select doesn't re-render
<aura:attribute name="draftOptions" type="Map"/>
<lightning:select aura:id="draftOptionsAuraId" name="draftOptions" onchange="{!c.actionLoadSelectedDraft}">
<option value="">--...
0
votes
2
answers
664
views
Lightning:Select dynamic form field
I am dynamically creating a form. When I have a basic text input field (lightning:input) the field appears where I would expect it to on the form - ex. the first field, 2nd field, etc. However, as ...
0
votes
1
answer
778
views
No value attribute in <lightning:select> tag
I use <lightning:select><option> pair tags with an sobject as a list.
The sobject is populated from a call to an Apex class method which returns the list:
var action = component.get("c....
0
votes
1
answer
472
views
Re-rendering map component on the Onchange event lightning: select
I have a lightning select on my component with two values - Leads and Accounts. When the option leads is selected ,I need to display all the Leads on map and if Accounts is selected then need to ...
5
votes
1
answer
5k
views
How to get a data attribute inside an option of lightning:select component
I am trying to get the data-office value inside this component, when the user changes:
<lightning:select aura:id="Location" name="Location" onchange="{!c.locationHandler}"> ...
0
votes
1
answer
955
views
Salesforce afterRender threw an error in 'lightning:select' [Cannot read property 'value' of null]
Below is my code.
Component:
<aura:handler name="init" value="{!this}" action="{!c.doInit}" />
<aura:attribute name="listControllingValues" type="list" default="[]" description="to ...
0
votes
1
answer
889
views
unable to set selected value on lightning:Select
I'm trying to set value for an lightning:select option. I have used Map to get value from Server and assigned to an map Attribute. Eventhough I'm setting the value to the attribute. It is not getting ...
1
vote
1
answer
12k
views
component.find().get("v.value") not working for unique local ID
According to lightning:select documentation the following should work:Component Markup
<lightning:select name="selectBoatType"
aura:id="currentBoatTypeChoice"
...
1
vote
3
answers
3k
views
Can't modify the css of lightning:select
I added a new Lightning component.
All is good (controller, helper, apex controller...), but the position of Lightning:select doesn't change. I don't know why. I want to center the lightning:select ...
1
vote
1
answer
448
views
Error setting onchange for a lightning:dualListbox but not other lightning:* components
I am getting the below error for the lightning:dualListbox but not for the lightning:select in the below component code. The component is being dynamically created. Other dynamically created lightning:...
0
votes
1
answer
20k
views
lightning:select - bind the selected attribute
With reference to this doc - https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/aura_compref_lightning_select.htm
I read below statement which I am trying to understand-
...
5
votes
2
answers
12k
views
How to set the options of a dynamically created lightning:select?
I'm using a $A.createComponent call to create a lightning:select component and in the "success" part of the callback trying to set the select options.
The "Generating Options on Initialization" ...
3
votes
2
answers
577
views
How to use <lightning:select> on Community? PURE Markup, no APEX, no JS
On a standard page in a Napili-based Community a want to render a <lightning:select>. As a starter, I just want to have one simple empty option.
The html-way it works just fine:
<select ...
13
votes
1
answer
3k
views
Lightning picklist for an SObject-Field - which one to choose ui:inputSelect or lightning:select or force:inputField or lightning:input?
I need to decide which path to proceed:
<ui:inputSelect />
<lightning:select />
<force:inputField />
<lightning:input /> (Beta)
write my own component...
Use case:
...
0
votes
2
answers
1k
views
How do use lightning:Select within a renderIf in a lightning component
I am trying to dynamically change whether a picklist is multiselect or just a single select based upon a field selected in the parent component to this, for example the field selected is a multiselect ...
7
votes
2
answers
10k
views
Lightning:Input - Hide (Reset) Field Level Error message Enabled by using showHelpMessageIfInvalid()
Have few Lightning:Input and Lightning:Select components in My Component A.
All the fields are having Required attribute as 'true'.
Once fields are validated, Field level error (help) messages appear ...
11
votes
3
answers
29k
views
readonly property of lightning:input not working
I am using lightning:input of different types. Using readonly=true in input of type text is working but does not work for checkbox or for lightning:select.
Anyone got any clue for this?