Questions tagged [lightningselect]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
2answers
119 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
1answer
35 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
1answer
78 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
0answers
20 views

Required attribute not setting to OFF even though I have selected a value in Lightning:Select

I am facing a weird issue. I have a parent and child component and have two picklists in child component. Based on 1st picklist value, I am rendering 2nd picklist with options. Both have required ...
0
votes
1answer
43 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
1answer
23 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
1answer
33 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.
0
votes
0answers
19 views

lightningselect performance

i am currently rendering a list with ca 50 records which takes very long. I have figured out that this is due to the lightning:select being in each row. The options are rendered through aura:iteration....
3
votes
1answer
100 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
3answers
150 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
2answers
305 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
1answer
303 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
1answer
114 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 ...
2
votes
1answer
1k 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
1answer
611 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
1answer
418 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 ...
0
votes
1answer
2k 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
3answers
939 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
1answer
238 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
1answer
13k 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
2answers
9k 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" ...
5
votes
2answers
386 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 ...
15
votes
1answer
2k 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
2answers
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
2answers
5k 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 ...
6
votes
2answers
10k 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?