Questions tagged [lightning-inputfield]

A lightning:input component creates an HTML input element. This component supports HTML5 input types, including checkbox, date and datetime-local, email, file, password, search, tel, url, number, radio, toggle. The default is text.

34 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
9
votes
2answers
430 views

accessing a lighning inputField lookup name client side

I am easily able to fetch a lookup ID from a inputField <lightning:recordEditForm objectApiName="Case"> <!-- the messages component is for error messages --> <...
4
votes
0answers
2k 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 ...
4
votes
1answer
731 views

recordEditForm with inputField on lookup does not work properly when searching or creating a record

Is it just me or is this an error in the salesforce standard lightning components? Here is what happened up until now: I want to create a new record with lightning:recordEditForm. This record has a ...
4
votes
0answers
1k views

lightning:inputField as lookup missing “New Record” option

Is it just me or is the lightning:inputField component missing the "New Record" option when it's rendered as a lookup? Right now I have to type a value in the lookup field, hit enter, and wait for ...
3
votes
0answers
416 views

Are lightning:recordEditForm and lightning:inputField a bit buggy in Spring'18?

I'm trying to get my hands on lightning:recordEditForm and lightning:inputField Im using it on Order Line Item like this <lightning:recordEditForm recordId="{!item.Id}" objectApiName="OrderItem" &...
2
votes
0answers
218 views

Salesforce mobile scrolling issues with input fields

I've been trying to adjust a record form to mobile version of salesforce. However, I'm having issues with scrolling. When I try to scroll down for the first time after page refresh, the screen stops ...
1
vote
0answers
129 views

Clearing validation errors on clicking clear filters icon not working on LWC lightning-input

The validation errors are cleared only on the second click of the button. But i need this to be working on the first click. Kindly help. My current code is as follows : HTML CODE : <div class="...
1
vote
0answers
132 views

lightning-record-edit-form rich text field issue

When we pass value from <lightning:textarea> (Aura Component) to LWC's <lightning-input-field field-name={fieldNameWhichisRichTextField}>. If i send any value that starts with symbol '<'...
1
vote
1answer
282 views

<lightning-input-field> not rendering when wrapped in child component

So I am trying to dynamically render out the fields of a Salesforce account, since this is supposed to be a package and I do not know what fields and rules the organization has on an account. However, ...
1
vote
0answers
717 views

LWC lightning-input-field Remains Disabled when Rerendered Using Another field-name

Problem: A dynamic lightning-input-field remains "disabled" after having been a formula field, even if it is no longer pointing at a disabled field. It's possible to workaround this by hiding the ...
1
vote
1answer
271 views

lightning-input: what is the purpose of message-when-too-long?

The lightning-input component has a documented property, message-when-too-long, which is described as: "Error message to be displayed when the value is too long." in the documentation. Presumably, ...
1
vote
0answers
99 views

How can lightning:inputField support human inputs of “10k” , how to make it support locale and how to make it consistent to other inputs?

I have a the following markup <aura:iteration items="{!v.Items}" var="item"> <lightning:recordEditForm recordId="{!item.Id}" objectApiName="OrderItem"> ...
1
vote
0answers
3k views

How can we fire onchange handler when we dynamically change component v.value?

I'm trying to build a simple component: testComponent.cmp <lightning:recordEditForm aura:id="editForm" objectApiName="Contact" ...
1
vote
2answers
231 views

Different behavior for value attribute in lightning:inputField for lookup field

I have a requirement where user needs to create a new Opportunity record in a lightning popup.Here I have to display a Territory field which is a lookup .So I am using lightning:inputField tag for ...
0
votes
1answer
22 views

How can we add placeholder for lightning:InputField?

standard html or lightning input has a attribute "placehodler" that allows us to enter a place holder value for the input field, but lightning:inputField does not have that attribute ...
0
votes
1answer
24 views

Display lightning-icon in lightning-input and add onclick action

I'm trying to add icon inside input and that's fine, but when i try to add some action like onclick it doesn't work. On front when i try to click on the icon i can not do this, cuz input hover it ;/ &...
0
votes
0answers
31 views

LWC lightnig input type date max value dynamically

LWC lightnig input type date max value dynamically I'm trying to add max Date as 2 years from now. Getting the error ass add_years is not defined Any suggestion would be great.. Html: <lightning-...
0
votes
1answer
72 views

Hiding dates earlier than today on lightning-input field

Is there way to grey out the dates which are less than today using a simple <lightning-input type="date" name="input1" label="Enter a date" ></lightning-input>...
0
votes
0answers
47 views

Style lightning-input like lightning-input-field

I'm using lightning-inputs in the middle of my record-edit-form to provide greater flexibility. Unfortunately their styling is different than that of the lightning-input-field which means they are not ...
0
votes
0answers
22 views

switching from force:input to lightning:input causing styling and functionality errors

switching from force:input to lighting:input and have run into a few errors. first, my styling is off and I'm not sure why. here's my code for these sections- <div class="slds-grid"> ...
0
votes
0answers
104 views

Lightning Input-field Currency Decimal Places

I am using a lightning-input-field in an LWC in a lightning-record-edit-form, I have set the custom Currency field (Currency Options: Length: 14, Decimals: 4). When the field renders it has 2-decimal ...
0
votes
0answers
49 views

Backspace key is not working for lightning-input type=“date” field in service console

We have created lightning web component and embedded to visualforce page using lightning-out, this VF page we are using in service console app. If we preview VF page other than console app, then ...
0
votes
0answers
83 views

Get Drop down and Enter input freely in a single line - Lightning component

I have an input dropdown in a table shown below. Please check below code I used for this input dropdown. <td role="gridcell"> <div> <select class="selectEle" id="{!'...
0
votes
2answers
437 views

Eye icon inside input password to show password

I'm very newbie in salesforce. I have some task to show eyeicon in form input password to show password Is that possible to create Eye icon in input type password instead using lightning:input or ...
0
votes
0answers
29 views

Why time Aura input doesnt display values as expected?

Im using lightning inputs for web compononent and for aura lightning LWC: <lightning-input data-formfield="Open1" type="time" variant="label-hidden" value={mondayOpenTime} disabled={mondayOpen}...
0
votes
1answer
261 views

Fetch Value from template tag in javascript in lightning web component

Please refer to below markup. <lightning-record-edit-form key={field.key} object-api-name="Callback__c" layout-type="Full" > <div class="slds-grid slds-wrap"> <template for:...
0
votes
2answers
3k views

How to put asterisk in lightning-input-field - LWC

My requirement is to put an asterisk before a lightning-input-field in my LWC. So I tried below code :- Earlier :- <lightning-input-field field-name='AccountId'></lightning-input-field> ...
0
votes
0answers
26 views

Update lightning:inputField when fieldName updated

I'm using lightning:recordEditForm and lightning:inputField to create new record. But I want to setup my field is automatically: <lightning:inputField fieldName="{! v.myField}" value="{! v.myValue}...
0
votes
1answer
261 views

lightning:inputField value not overriding for lookup field

We have a Lightning Component with some of this: <aura:attribute name="editRecordId" type="string"/> <aura:attribute name="serviceId" type="string"/> <lightning:recordEditForm ...
0
votes
1answer
258 views

force: inputfield is not working properly for lookup fields inside the aura:iteration

<td valign="top"> <force:inputField aura:id="lookup" value="{!v.conitem.CERM__Account__c}"/> <br/> </td > <td IconName="custom:custom17" valign="top"> ...
0
votes
1answer
2k views

record:editform for input lookup field pop up search option is not working

I have created a a lightning component record edit form in VF, which has a input lookup field for custom object named Heading. In the lightning component when I search for a Heading name, it will ...
0
votes
1answer
2k views

Onchange Function for Lightning:inputField Automatically Runs (Causing an Error) when Loaded in a Modal

I have a component that opens in a modal. Modal/Button Markup <lightning:overlayLibrary aura:id="overlayLib"/> <lightning:button name="modal" label="Create Pet" onclick="{!c.handleShowModal}...
0
votes
1answer
721 views

Get text value from <lightning:inputField> not working properly

I would like to get the value from lightning:inputField. I want to be able to get the length of the string and ultimately create a keyup event for character length validation. However, I can't ...
0
votes
1answer
155 views

Displaying checkbox after the field name while using lightning:inputfield

Need a small help in displaying the checkbox after the field name while using lightning:inputfield <lightning:recordEditForm aura:id="editForm" recordId="5000D0000024fvcQAA" objectApiName="Case"&...