Questions tagged [lightningselect]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
2answers
25 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
1answer
55 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
0answers
29 views

Lightning:Select is not working in Communities

I have a partner communities and I created a new lightning Component with "lightning:select" and we have a drop down to show some of the make and models in our project. After completing my lightning ...
0
votes
1answer
19 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
1answer
177 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
2answers
1k 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
280 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
235 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
1answer
100 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
31 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
141 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
1answer
229 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
272 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
470 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
429 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
179 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
1answer
2k 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
852 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
581 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
4k 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
2k 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
307 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
15k 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
10k 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
456 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
7k 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 ...
7
votes
2answers
14k 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?