Stack Exchange Network

Stack Exchange network consists of 175 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 [lightninginput]

The tag has no usage guidance.

0
votes
2answers
970 views

lightning:input time display

I am using a <lightning:input type="time"/> component and the picker is displayed to the user in 12 hour time with an AM/PM picker. I want to display this value to the user in a table and the ...
1
vote
1answer
1k views

Question about pattern of lightning:input

how i can have a field (lightning:input) in which i can write 3 integer and 3 decimal? Something like 123.456 (max 3 integer and max 3 decimal, with "." or "," between integer and decimal). I try to ...
0
votes
1answer
740 views

Setting multiple selections on a dynamic created <ui:inputselect>

I'm sure I'm missing something obvious here but I'm trying to set all dynamically created iputselectoptions as selected when my lightning component is initialised but I'm finding that nothing is set ...
0
votes
1answer
3k views

Using lightning:input with type=“number” and formatter=“currency”

Is there a way to use lightning:input with formatter="currency" to show whole number instead of Decimal number <lightning:input aura:id="{!item.Id + 'CY_Tile_Budget__c' }" type="number" name="...
13
votes
0answers
327 views

Cannot read property '$$OwnerKey$$' of null

I have a Visualforce Lightning Out page that's rendering some <lightning:input type="date"> elements. Since the Winter '19 release in the dev sandbox I'm working in, whenever I select a date ...
6
votes
0answers
275 views

lightning:input behaves strangely with Non-US(german/french) locale

In my app there are many users with a German or French locale. Both have in common that they use comma as decimal separator (opposed to Apex, JS and US-citizens which use a dot .) The dot instead is ...
5
votes
0answers
191 views

How to handle percentage factor of 100 problems when using lightning:input and lightning:datatable?

When working on a bug, I just noticed that lighting:input now supports two percentage formatters, where the older one percent expects the user to know to enter e.g. 0.5 for 50%: <lightning:input ...
3
votes
0answers
2k views

Using Lightning input file

I've been using the lightning:input type="file" <lightning:input type="file" label="Attachment" name="file" multiple="true" accept=".docx, .doc, .xlsx, .zip" onchange="{! c.handleFilesChange }"/&...
2
votes
0answers
231 views

Lightning:input[type=number] value attribute is string instead of number

I encountered a fascinating bug (or feature) in the lightning:input[type=number] component and I was wondering if any of you have had this problem before? I'll describe what happens: My lightning ...
2
votes
0answers
167 views

Input too long when firing a custom event

What I'm trying to do is, onblur of the amount field, the total amount event would fire and would update the parent component's total amount attribute. Im doing this so that the running total in the ...
2
votes
0answers
39 views

Are multiple object key levels supported in input components?

I am trying to use a <lightning:input> component to edit the Quantity field on an OpportunityLineItem object. The OpportunityLineItem object is contained within a Javascript Object as a key, so ...
1
vote
0answers
16 views

Spell check doesn't work well in lightning input rich text

I'm having a lightning out app in which I'm having a custom rich text field. When I try to correct the spelling for the misspelled words, it's stripping out the entire line instead of correcting the ...
1
vote
0answers
247 views

Issue with Lightning:input and currency formatter

I'm creating a lightning component with a lightning:input, but I have an issue with decimal places and currency formatter. This is my code: <lightning:input name="foo" value="foo" type="number" ...
0
votes
0answers
24 views

File upload thumbnail preview in Lightning

I would like to understand if there is any way to do thumbnail preview in salesforce on file upload I tried implementating the below but apparently it does not work without paura package/framework ...
0
votes
0answers
44 views

Display currency in lightning

I am using lightning:input to display a currency value <lightning:input aura:id="fee" type="number" formatter="currency" label="Fee" name="fee" value="{!v.feeObj.Fee__c}" step="0....
0
votes
0answers
261 views

onBlur for lightning:input

Trying to implement logic for lightning:input on onBlur case. I need to close this input, when it lose focus, and if I click related buttons for this lightning:input(Confirm/Cancel), want to have some ...
0
votes
0answers
21 views

Lightning:input type= date changing year from dropdown doesn't work

In Lightning,for Date input field I use <lightning:input type="date" aura:id="Start_date__c" value="{!v.Start_Date__c}" /> In UI, in the datepicker,if I try to change the year using the ...
0
votes
0answers
29 views

lightning:input press enter and hide mobile keyboard

I have a <lightning:input which is used to search for products. CMP <lightning:input onchange="{!c.handleSearchTermChange}" aura:id="searchTerm" label="Search Products" type="search" /> ...
0
votes
0answers
148 views

lightning input file values are changed on attribute modification

I have file input and radio: <lightning:input aura:id="file-input" label="Attachment" type="file" accept="....
0
votes
0answers
105 views

lightning input file not working in modal

I have this code: <lightning:input name="myFile" type="file" label="Attachment" required="true" onchange="{! c.handleFilesChange }"/> It works fine when placed in component. But when it is ...
0
votes
0answers
44 views

Free Text fields in Communities with <lightning:input> in Lightning Components

I know this is somewhat of an open-ended question, but I hope to get some ideas or guidance on how to drill down on an issue we're experiencing. I'm working with a Salesforce Communities site that ...
0
votes
0answers
355 views

onBlur event for lightning:input is not working on iOS

I have onBlur eventListener to lightning:input tag for table Row in a component, It is working fine on Android devices, but it's giving an error on iOS devices v10.3 ( not sure about below). <...
0
votes
0answers
391 views

Data binding of lightning:input and aura:attribute with type sObject(field) is not working

There is a weird scenario I'm facing while I try to bind the markup UI tags with Lightning aura:attribute as type sObject (fields). I'm trying to bind data to sobject's fields for different lightning:...
0
votes
0answers
235 views

Make light:input disabled conditional

I have the following piece of code in my lightning component <aura:attribute name="wrapAccountList" type="wrapAccount[]"/> <aura:iteration items="{!v.wrapAccountList}" var="arItem" ...
0
votes
0answers
263 views

Drag and Drop from Outlook to Lightning:Input

I am setting up a drag and drop file upload using lightning:input as type=file and it works fine when dragging from a local folder. But when I try to drag an Outlook attachment, it doesn't recognize ...
0
votes
0answers
253 views

lightning:input accepting xml document in spite of not included in “accept” attribute .(Microsoft Edge specific issue)

I have following lightning:input of type file: <lightning:input aura:id="fileInputId" type="file" label=" " multiple="false" ...
0
votes
0answers
182 views

Unable to invoke action from ui:button component in Lightning

Could you please help in solving this issue?. I am unable to invoke controller action from ui:button press event. Code is below. Controller.js ({ displayName : function(cmp, event) { ...
0
votes
0answers
88 views

lightning:input hides input on focus - how can I fix it?

On displaying a lightning:input component, everything looks fine: But if I click on the component, not everything looks fine: How can I move those up and down chevrons to the right?