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.

25 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
2answers
233 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
1answer
589 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 ...
3
votes
0answers
394 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" &...
3
votes
0answers
951 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 ...
2
votes
0answers
812 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 ...
1
vote
1answer
387 views

Lightning:inputField lookup icon missing

I am using the Lightning:inputField to render a lookup (custom object) inside a RecordEditForm. Though the functionality works fine, the object's icon does not render, like it does on a standard edit ...
1
vote
0answers
94 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
1answer
103 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
0answers
21 views

Custom Lightning:inputField Validation

I had tried to follow this solution but it does not seem to work for lightning:inputField. Basically I want to stop negative values from being entered in the field. I have tried the solutions below ...
0
votes
0answers
83 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 ...
0
votes
1answer
103 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
0answers
20 views

display multiple fields information in one inputfield

How can we show multiple fields information in one inputField? I would like to display multiple fields after select the searched record. In the attachment, multiple fields are shown in the search ...
0
votes
1answer
664 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
24 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
2answers
368 views

Focusing on an input Field when using <lightning:inputField>

I am using lightning:recordEditForm to display to users custom creation form and using lightning:inputField. However, I am unable to set focus on a particular field. I know that Salesforce doesn't ...
0
votes
1answer
112 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
0answers
69 views

How to validate lookup lightning input field in record Edit form

I have a record edit form with multiple custom lookup fields. Standard validation rules on lookup fields with an invalid input would give an error message "An invalid option has been choosen". Looks ...
0
votes
1answer
195 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
0answers
345 views

Lightning:inputField Could not find picklist values for field using GlobalValueSet

I'm using the lightning components lightning:recordEditForm and lightning:inputField to compose a form for a Record Creation. the component works correctly as long as I do not use a picklist field ...
0
votes
1answer
1k 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
0answers
683 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
604 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
2answers
2k views

Lightning:input field - focus and enter key in Lightning Component

I have a input field in lightning component and I'm struggling with two requirements. Autofocus - after page is loaded and on Enter key I want to trigger function. I can handle those requirement ...
0
votes
1answer
82 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"&...