Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [lightningselect]

The tag has no usage guidance.

1
vote
1answer
39 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
0answers
43 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
36 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
257 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
230 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
72 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
0answers
185 views

Update lightning:select value without using the associated button

I have been trying for a few days now to update the value in lighting:select without having to use the associated button. The scenario is that I am using an iterator to generate a list of questions, ...
0
votes
1answer
5k 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- ...
4
votes
2answers
5k 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
1answer
254 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 ...
12
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
793 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 ...
6
votes
2answers
3k 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 ...
4
votes
2answers
5k 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?