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
3
votes
2answers
860 views

Building an efficient LWC form without record-edit-form

I'm new to Lightning web components (LWC) and I'm trying to find the best way to build an input form where I need to control the submit process - I need to do extra validation and then construct a ...
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 ...
2
votes
1answer
213 views

lightning-record-edit-form component used in Community returns error: “The requested resource does not exist”

I have created a lightning web component as a form to insert new cases. I use this lightning web component inside a lightning community. Inside my lwc I am using the lightning-record-edit-form ...
3
votes
2answers
70 views

recordEditForm not loading related record via lookup

I have the exact same component in 2 different sandboxes. The component uses lightning:recordEditForm and is passed an object name & Id. There is a lookup field to the Account object that is ...
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 ...
4
votes
2answers
592 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: ...
0
votes
1answer
59 views

How to save single record using Lightning:recordEditform inside aura:iteration? I am able to save all the records by using forEach in JS Controller

Component: <aura:iteration items="{!v.oppStageList}" var="opp"><lightning:recordEditForm aura:id = "StageChange" recordId ="{!opp.Id}" objectApiName ="Opportunity" onsuccess ="{!c....
0
votes
0answers
485 views

Lightning Record Edit Form onsuccess not firing

Having issues getting the onSuccess Event to fire on my Lightning:recordEditForm. My submit button is outside of the Lightning:recordEditForm and that works perfectly but i'd like to have the ...
2
votes
1answer
42 views

Displying Salutation field using lightning:recordEditForm on Person Account

There is a known uncommon behavior with Salutation field on Contact object while displaying it using lightning:recordEditForm. Since it is a part of the compound Name field on Contact. The workaround ...
0
votes
0answers
19 views

Duplicate Rule Bypass with RecordEditForm in Lightning

I am struggling with figuring out how to pass dml.DuplicateRuleHeader.allowSave = true; in Apex on a Lightning RecordEditForm component. I am using RecordEditForm as a record creation form and ...
0
votes
0answers
17 views

lightning:recordEditForm withing aura:iteration

I have a requirement where I need to update a lookup field on every child record (while working with the parent records). My plan is to create a lightning component and iterate over lightning:...
0
votes
1answer
112 views

Prevent Lightning Data Service Caching - <lightning-record-edit-form>

Context I have a custom Lightning Web Component that allows modification of multiple records inside of modal. Once a record is updated, I reload that same record-id, but the old data shows up ...
-1
votes
1answer
64 views

Using a lightning-record-edit-form to show a form in modal to create record in lwc

How can i display error message that will come on submitting the form and also how will can we Handle creating a new record in lwc anyone has any examples ? PS. I am using lightning-record-edit-form ...
0
votes
1answer
112 views

lightning-record-edit-form: Not Refreshing - Caching Issue

Problem - I have a DataTable with a Modify action that shows a lightning-record-edit-form when clicked. The user updates the lightning-record-edit-form and clicks the Submit button. The data is ...
1
vote
2answers
108 views

lightning:recordEdit get onSubmit to fire when calling submit from controller

Similar to this question posted last year. I am calling the submit function from a lightning:recordEdit from the js controller. However, in my use case the form is creating a new record, and I now ...
0
votes
1answer
167 views

lightning:inputField with a checkbox field type doesn't work when clicking the box unless label is clicked,

On lightning:recordEditForm, lightning:inputField with a checkbox field type doesn't work when clicking the box unless label is clicked, this is occuring when Winter 20 is released. This is working ...
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"> <...
0
votes
0answers
29 views

Why does a datatable that is nested inside a recordEditForm call onSubmit() on every inline edit?

As per the title, I have a datatable component nested inside my recordEditForm to display and edit some data (and never submitting, thus the suppressBottomBar="true"). The weird thing is that whenever ...
0
votes
1answer
43 views

oldValue and newValue on lightning:inputField?

I'm using lightning:recordEditForm for users to change values on a specific record. The form looks like this: <lightning:recordEditForm aura:id="form" onsubmit="...
5
votes
1answer
322 views

variant='label-hidden' Not Working for lightning-input-field When field is a Lookup

I have a Lightning Web Component and in that I'm using a lighting-record-edit-form. I'm trying to use a custom label for an input by hiding the default one for the lightning-input-field and adding my ...
0
votes
2answers
85 views

How to save record from a different object using nested recordEditForm

I have managed to get fields from two different objects to display in one lighting component but I am having a few problems off the back of this. When saving it will only save the main record and ...
2
votes
1answer
67 views

Record edit form not accessible by a user

This question is the extension of THIS question. Posting again (with simplified code) as I am blocked in this issue. Even for very simple form as below I am getting [object object] error. <...
0
votes
1answer
23 views

How to pass parameter to recordEditForm on init

I have 2 child components in a wizard the first on the first page the second on the second page. I pass a recordtype Id from the first component to the second component trough an event how do I pass ...
1
vote
0answers
26 views

How to make the values of lightning:recordEditForm stay on button click

I'm using lightning:recordEditForm to display the case fields in a component. On clicking next which is present in step 1, it will display another set of values of the same record in step 2. On ...
1
vote
1answer
163 views

How to Pass values from Record-Edit-Form to Apex method LWC

I am using below record-edit-form to create record - After button click i am getting rec object as null {}. How to pass the values from inputfields to apex. The lightning-button is in footer of a ...
0
votes
1answer
258 views

Can't pre-populate datetime value in <lightning-input-field>, Summer '19 change/bug?

This issue has just appeared since Summer '19 rollout. It was working correctly before. I have an LWC with a <lightning-record-edit-form> for creating a new appointment record (so no record-id ...
0
votes
0answers
48 views

Record Edit Form set Date inputfield value

I'm attempting to set the value of a Date input field with this value: '2019-8-25'. It's populating in the UI, but when I try to submit the form it's showing I'm setting it like so: let date = new ...
0
votes
1answer
232 views

lightning:recordEditForm Need to send recordEditForm data back to Apex controller

I am new to Lightning and i have designed a component using recordFormEdit. On the recordFormEdit handleOnSubmit action, i am sending the data back to object using the standard functionality(Without ...
0
votes
1answer
303 views

lightning:inputfield | pre-populate with parent record data

I am working on my first Lightning component and cannot figure out how to access values on the parent record when creating a child record. The component is shown on the parent record and I can get the ...
0
votes
1answer
365 views

Submit Record Edit Form for every object in Aura iteration

I have a Contact object form with a child form component for Buying Center objects. When I upsert the Contact, I need to submit a list of Buying Centers for this Contact. Parent Contact component has ...
0
votes
1answer
140 views

LWC Lightning Record Edit Form Case Assignment Rules

Is it possible to somehow trigger case assignment rules upon creation of a case via a lightning-record-edit-form? It used to work when I had it set in page layouts but that seems to no longer be the ...
3
votes
0answers
803 views

Lookup Filters in custom lightning:recordeditform lightning:inputfield using prepopulated values

I'm using lightning:inputfield in a lightning:recordeditform for lookup fields - we'll call them Party and Warehouse. The Warehouse lookup has filters on it based on the Account field - Warehouse....
2
votes
1answer
151 views

event.detail is undefined in Lightning:recordEditForm submit event

I'm trying to get field values at Lightning:recordEditForm onSubmit() event.In the documentation example it shows below. my onSubmit event handler as below, I end up getting error, [event.detail ...
0
votes
2answers
236 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 ...
1
vote
1answer
940 views

LWC - Handling Save Event on Record Edit Page

I have a <lightning:datatable> in which I have a rowAction which triggers and shows an edit record page (in a modal), as follows: HTML <lightning-datatable columns={columns} ...
1
vote
1answer
818 views

lightning:recordEditForm | Some input fields not being displayed

I'm trying to create a new form for a custom Object in salesforce. This is my form Code: <lightning:recordEditForm aura:id="MyFormId" objectApiName="...
1
vote
1answer
106 views

How to find a dynamically assigned aura:id?

I'm looking for getting a dynamically assigned Aura:id. Below is my attempt to read it in Lightning:recordEditForm. Component markup: <aura:component > <aura:handler name="init" value="{...
0
votes
0answers
68 views

How to bypass FLS for Lightning:recordEditForm for Community Guest User

I'm trying to update a Contact record as Guest Community User. Lightning:recordEditForm seems does not allow community guest user to load or save the record, and gives me following error on community ...
3
votes
3answers
439 views

How to read lightning:recordEditForm Object instead of using API

I got 3 lightning:recordEditForm components on a wizard (3 pages handled by slds-hide/show) to capture details. At the last wizard page it must save first object, and 2nd object must get first object'...
2
votes
2answers
270 views

Summer 19 breaks undocumented lightning:inputField feature - variant=“label-hidden”, what are alternatives?

Seems like attribute doesn't work anymore. I know before label-hidden variant, I used to be able to hide labels using some CSS. Unsure what it was anymore.
2
votes
1answer
355 views

Can't change case Owner in Aura using <lightning:recordEditForm>

Is there any way to change Owner of case using Lightning record edit form? I Want to use OwnerId Field only. When I use <lightning:inputField variant="label-hidden" fieldName="OwnerId" ...
0
votes
1answer
49 views

Why doesn't my field assignment work for lightning:recordEditForm?

I have a component with a lightning:recordEditForm that I build using an aura:iteration over fields from a field set for Order Products. I've added a custom submit method in my controller that makes ...
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 ...
3
votes
1answer
670 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. ...
0
votes
1answer
232 views

Use variable from lightning:recordEditForm in aura:if / ternary statement

I want to conditionally render one of the fields from recordEditForm. I've already done with attributes that are outside of form, but this time I want to bind the directly. Thinking something like ...
0
votes
0answers
57 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
329 views

Saving Lightning Select Value

I'm trying to display a drop down on a custom component and once a value is selected I would like to update the value in the database. I'm finally able to load the values from the database, set the ...
0
votes
0answers
34 views

Retain previously entered lookup values in a Flow

Was wondering if there is a way to save a previously entered lookup value in a flow? i want to give my users the ability to click previous and still have the value they just looked up be there. It ...
0
votes
1answer
43 views

recordEditForm fails to rehydrate picklist fields

I've noticed that recordEditForm fails to load picklist values. It saves them properly, but try to reload page and picklist fields are blank, while checkboxes and text fields are fine. Feels like a ...
2
votes
0answers
89 views

Add Event Handler to Next button in Flow

Having some trouble validating an Aura component field (it allows lookup in Flow) as i can't seem to think of how to fire an onclick event from the standard Next button (in flow). I would use the ...