We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [lightning-recordeditform]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
0answers
588 views

Get the fields and values form recordEditForm before submit the form

I am using lightning:recordEditForm to generate a form for cloning opportunity record. currently, there is no functionality to clone a record using lightning:recordEditForm. So what Approach I am ...
0
votes
1answer
283 views

lightning:recordEditForm not showing lookup search window in community

I'm using lightning:recordEditForm to create new opportunity my code is <aura:attribute name="objAPIName" type="String" default="Opportunity"/> <lightning:...
2
votes
0answers
502 views

Unable to update record edit form field on button click

I have a requirement where I have a validate button for Lightning:recordEditForm on click of which it needs to update certain fields. So my code is something like this <lightning:...
0
votes
1answer
525 views

Error message: Invalid literal value [1, 1]: 'WorkOrder' - Lightning Components - Dynamic Binding

I have a issue, I'm trying to create a Dynamic Form with two lightning Components and fieldsets, each component's related to an Object 'WorkOrder' and 'WorkOrderLineItem'. I pass the API names of each ...
0
votes
1answer
912 views

Salesforce lightning setting slds column rows to be the same height

I'm using lightning:recordEditForm with lightning:inputField to generate a list of fields. I dynamically create a lightning:inputField component and add it to an slds column. The lightning:...
0
votes
2answers
559 views

Dynamically creating lightning:inputField with a div

Currently I have this loop which can dynamically create a lightning:inputField: for(var i = 0; i < editFieldsToRender.length; i++) { $A.createComponent ( "...
0
votes
1answer
506 views

<lighting:inputField> disabled in a custom Lightning component when using standard lookup

I am trying to understand why the ownerid field shows up as an uneditable field <lightning:recordEditForm aura:id="recordViewForm" objectApiName="Case" ...
4
votes
2answers
6k views

How to do field validation on lightning:recordEditForm with lightning:inputField

Background I have a lightning component with a lightning:recordEditForm for creating new Opportunity records. The lightning:recordEditForm contains many lightning:inputField 's I would like to ...
2
votes
0answers
134 views

How to display errors on compound fields in Lightning Record Edit Form

My lightning:recordEditForm contains compound and regular (non-compound) fields. The regular fields display errors (field validation error, required field error, etc.) on the field. But, the compound ...
0
votes
1answer
244 views

Can we perform frontend validation with lightning:inputField? [duplicate]

I'm creating some small lighting components for use with Quick Actions. While "Never trust the client" means I will have backend validation, for a good user experience, I'd prefer to prevent bad data ...
1
vote
1answer
150 views

Add picklist to community based form using lightning data service

I've got two fields on a Contact that I want to ask on a separate page with some verbiage on it and for some reason, I cannot get any of the LDS record handlers to work properly. I thought I would be ...
0
votes
1answer
351 views

lightning:recordEditForm error. Field does not exist

When using lightning:recordEditForm I am getting the following error in the <lightning:messages />: Field does not exist. Here is the markup I am using: <lightning:recordEditForm aura:...
1
vote
1answer
502 views

Position submit button of the lightning:recordEditForm in the footer part of the modal window in slds [duplicate]

Is it possible to position submit button of the lightning:recordEditForm in the footer part of the modal window in slds? The problem is that the button should be between the lightning:recordEditForm ...
5
votes
2answers
206 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 --> <...
2
votes
1answer
1k views

lightning:recordForm not showing fields when using recordId

I'm using lightning:recordForm with recordTYpeId for showing the user a new blank form when they need to input data. This works great since the page layout is controlled by the administrator for the ...
4
votes
1answer
658 views

Not able to set value for Lightning:inputField field if it's manually modified from UI

I am facing issue with Lightning:inputField with lightning:recordEditForm that when I am trying to programatically change the value of any field I am able to do only if user is not modifying that ...
0
votes
0answers
474 views

How to Re-submit the lightning:recordEditForm after event.preventDefault()

I am stuck in a issue where i have to add custom validation on fields in lightning:recordEditForm. I am using the onsubmit method of lightning:recordEditForm to check the fields values and if the ...
1
vote
0answers
1k views

Multi Insert with recordEditForm

Is it possible to bulk insert a records using recordEditForm component?. Here's the sample lightning component which I tried: <lightning:recordEditForm aura:id="editFormAccount" objectApiName="...
3
votes
1answer
673 views

Are Lookup Filters supported in Custom Lightning Components?

So, there are two ways to get Salesorce Standard Lookup filed in Lightning components: force:inputField and lightning:inputField. However, no matter what I do, I can not get lookup filters to work. ...
3
votes
2answers
11k views

Easiest way to get a value from a lightning:inputField

I want to get the value from a lightning:inputField, but I can't. Component: <aura:attribute name="myAttribute" type="String"/> {!v.myAttribute} <lightning:recordEditForm objectApiName="...
0
votes
1answer
380 views

Action onchange for two dependent picklist in lightning:recordEditForm

I have two picklist fields, Country(controllling picklist) and State(dependent picklsit). State should change based on Country value for my lightning page. As of now this is happening, but State ...
17
votes
1answer
13k views

lightning:recordEditForm - Set or modify field values onsubmit

I have created a lightning component which allows the creation of a record in a custom object. I've used lightning:recordEditForm to capture the data, and to help the user it automatically populates ...
2
votes
1answer
683 views

Does lightning:recordEditForm work for more then one object?

I am building the form where I have 1-n object structure. For a sake of simplicity lets say I have an Invoice__c Custom Object and Item__c. If its only Invoice__c, it would be <lightning:...
2
votes
1answer
474 views

“INVALID_FIELD: LastViewedDate” when saving recordEditForm

I have the following recordEditForm component which does not use LastViewedDate: <aura:component description="ErrorTesting" implements="flexipage:availableForAllPageTypes" access="global"> <...
4
votes
0answers
494 views

lightning:recordEditForm - MS Edge issues

Brief: I have a container component that overrides the View Action of a custom object in Lightning Experience. The container component contains a component that renders a list of related records and ...
4
votes
1answer
1k views

lightning:recordEditForm “Received unexpected value during emit” error on loading randomly

I have one Lightning component with lightning:recordEditForm. Some times this is throwing an error "Received unexpected value during emit".If i refresh it sometimes it is not showing any error.It is ...
8
votes
1answer
1k views

Show form with page layouts && intercept save … Lightning:recordForm / force:recordData

Somewhat flummoxed with this lightning component. The use case is simple: Intercept the save event on a record edit, grab the new field values and do 'stuff' before saving the record. Example User ...
2
votes
1answer
633 views

Lightning record edit form issues with Person Account

I was rendering the person contact details using lightning record edit form. Updating the person contact details using force:recordData lightning data service. If i'm updating the person contact ...
4
votes
2answers
594 views

How to handle error of lightning:recordForm

Right now, I am aware of the onerror event of the recordForm tag. However, in the controller, event.getParam("errors") doesn't return anything. This is how the controller code looks like: ...
3
votes
1answer
4k views

Lightning:inputField not allowing decimal numbers to be inserted

I am using <lightning:recordEditForm> and <lightning:inputField fieldName="customField"/> to create a form. My custom field is Number field with setup number(16,2) - length 16, decimal ...
3
votes
0answers
381 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" &...
0
votes
0answers
1k views

lightning:recordEditForm onSuccess eventhandler Problem [duplicate]

I'm trying to catch the onsuccess event of a lightning:recordEditForm , because I need the Id of the record created. I'm not able to get that Id, how can I do that? Thank you for your help. Below you'...
7
votes
1answer
406 views

Is it possible to mass-save many lightning:recordEditForms with only ONE button?

Im implementing an line item editor for the "Order" SObject and want give lightning:recordEditForm with lightning:inputField a try for this. What I have so far is an edit for the order combined with ...
6
votes
1answer
2k views

On lightning:recordEditForm how can I retrieve the recordUi onload-actions return parameter?

The docs here indicate, that the onload-action return the following: Parameter : recordUi Type : Object Description : The object metadata. For more information, see the User Interface API Developer ...
6
votes
3answers
2k views

How to use $A.createComponents() on lightning:recordEditForm with nested lightning:inputField?

I've asked this question to change the objectApiName attribute of lightning:recordEditForm. Thanks to the great answer of @PranayJaiswal I found a workaround. Now I soon will face the need of having ...
8
votes
1answer
3k views

Is it possible to use lightning:recordEditForm dynamically on different object types with variable objectApiName?

I need to create an edit component for an SObject from which I do not know the objectApiName at design time. I only know the Id of the SObject. objectApiName could be any valid SObject-name. Now I ...
5
votes
2answers
953 views

Lightning InputField component with Salutation field

I'm using the lightning:recordEditForm with lightning:inputField and it's going quite successfully. However, I've run into an issue with the Contact.Salutation field. It works when it's a part of the ...
0
votes
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" ...
16
votes
2answers
12k views

How to submit a lightning:recordEditForm from a button that isn't nested?

The lightning:recordEditForm documentation provides this example: <aura:component> <lightning:recordEditForm recordId="003XXXXXXXXXXXXXXX" objectApiName="Contact"> <...
3
votes
0answers
888 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 ...
15
votes
2answers
4k views

Anyone got a lightning:inputField working for a lookup?

I have a lightning:recordEditForm containing lightning:inputFields that I want to use to create a simple custom object. The 3 fields are: A picklist A lookup to Contact A lookup to Account presented ...
9
votes
1answer
9k views

Setting attribute required to lightning:inputField

in Salesforce classic I created an object ,Equipment__c' and the field ,License plate' amongst others. We are using the object ,Equipment__c' for different types of equipment. For trucks the field ,...
7
votes
1answer
5k views

How to get Created Record ID in Lightning:recordEditForm?

I am using lightning:recordEditForm and lightning:inputField for creating a new record. this component is being used inside a lightning community builder. When i click the submit button, i am able to ...
3
votes
2answers
8k views

Set field values on lightning:recordEditForm (record create mode)

I am using lightning:recordEditForm to display records that may be new or existing. This is working nicely, however I now want to preset one of the fields. The fields are displayed using lightning:...
6
votes
1answer
2k views

How to validate the values before saving a record through lightning:recordEditForm and lightning:inputField?

I'm using lightning:recordEditForm and lightning:inputField to update a record. I need to validate the values before updation and I couldn't find any ways to get the values from lightning:...
2
votes
5answers
8k views

Use lightning:recordEditForm to add a record

I am trying to use lightning:recordEditForm to add a record to the Contact object but cannot. I use the code as given in the documentation: <aura:component> <lightning:recordEditForm ...