Questions tagged [lightninginput]

The tag has no usage guidance.

30 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
14
votes
1answer
356 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 ...
7
votes
1answer
364 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 ...
6
votes
0answers
327 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 ...
3
votes
0answers
3k 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
69 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 ...
2
votes
0answers
484 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
188 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
42 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
1answer
17 views

How to change output type to input type in lightning onclick

I like to change output field type to input type when i click on date picker of date field.
1
vote
0answers
335 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" ...
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
30 views

Lightning-input label font size too small on mobile

I create a visual force page with a lightning web component form. The problem I have is that the input labels are too small on a mobile. The visual force page: <apex:page showHeader="false" ...
0
votes
1answer
29 views

validation after data is imported through .csv in lighnting web componet form

I made a UI, where i am taking inputs inside loop. I have four columns. First column is Model number and second column is Part Number(read only). When they enter model number i am calling class and ...
0
votes
2answers
66 views

lightning-input-address embedded in VF page. Address lookup not working

I have a use case to embed a lightning web component in a VF Page (in Classic) which includes a lightning-input-address component. The component includes the standard address lookup input (which ...
0
votes
0answers
60 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
124 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
843 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
30 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
35 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
179 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
117 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
1answer
886 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
0answers
485 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
307 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
313 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
2answers
1k 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 ...
0
votes
1answer
4k 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="...
0
votes
0answers
315 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
194 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
94 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?