Questions tagged [lightning-recordeditform]

91 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
9 votes
2 answers
650 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 --> <...
  • 19.7k
6 votes
0 answers
2k 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....
4 votes
0 answers
534 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
3 answers
4k 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: ...
  • 780
4 votes
0 answers
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,866
3 votes
0 answers
1k views

lightning:recordEditForm. Override submit retrieve undefined on event.getParam('fields')

I had a working code on Winter 18 which override the standard submit event on recordEditForm component but it is not working on Spring 19. When I try to retrieve fields using event.getParam('fields'); ...
3 votes
0 answers
453 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" &...
  • 34k
2 votes
0 answers
36 views

Summer20 - recordEditForm issues

We are facing some issues with Summer20 releases. Does anybody face those issues? Scrollbar is not visible on Edit(overridden component) screen - But with hard refresh its showing scrollbar(tried ...
  • 3,016
2 votes
1 answer
884 views

lightning:recordEditForm Multiple Submit Buttons

I have a lightning:recordEditForm that requires two submit buttons. Submit buttons are required rather than using onclick due to submit() not firing the forms onsubmit event. This is required so that ...
  • 5,275
2 votes
0 answers
231 views

Wrong field label for lookups when using lightning-record-edit-form

I'm having an issue when using Standard Lookups on lightning-record-edit-form. In the following example: .html: <template> <lightning-record-edit-form record-id={recordId} ...
  • 435
2 votes
1 answer
332 views

Unable to load Lookup field in lightning:recordEditForm

I am using lightning:recordEditForm to display form for User object, below is my code. OOTO_Delegate__c is a self lookup field. Upon printing error in console I see '{"message":"Cannot read ...
2 votes
0 answers
169 views

How to get picklist values and translations using Aura and Apex?

Background: I was using a an aura lightning:recordEditForm containing a picklist field. This component will automatically detect user language and use the translations you have set for that field. ...
2 votes
1 answer
917 views

lightning-record-edit-form not displaying help text in community

<lightning-record-edit-form object-api-name="Account"> <lightning-input-field field-name='Name'></lightning-input-field> </lightning-record-edit-form> above peice of ...
2 votes
0 answers
636 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 ...
  • 711
2 votes
0 answers
2k 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 ...
  • 22.2k
2 votes
0 answers
834 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:...
2 votes
0 answers
189 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 ...
2 votes
1 answer
1k 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
0 answers
247 views

lightning:inputField won't save null value into numeric field

I use lightning:inputField for a numeric field inside the lightning:recordEditForm. When a user tries to delete a number from that field, it shows a validation error "cannot be parsed as a number, ...
  • 41
2 votes
0 answers
422 views

lightning:recordEditForm basically 'Dies' during random situations

I have a child object "Campaign Child" under the Campaign object. They have a master-detail relationship. I use lightning:recordEditForm to override the standard "New" button on the "Campaign ...
  • 41
1 vote
0 answers
38 views

Refresh related list after creating a record via LWC quick action

I built a screen action LWC that uses lightning-record-edit-form and lightning-input-field to create a new record. The quick action is placed on a parent record page and adds a related child record to ...
1 vote
0 answers
81 views

LWC Fires on Change Event when Record Edit Form Picklist Fields are reset

On my Lightning Page I am using a Record Edit Form with Input fields for Picklists and Text. When any of the Input fields are changed the onchange Event Handler is firing the HandleChange Event. This ...
1 vote
0 answers
123 views

Create Record LWC Lightning-Record-Edit-Form Stage to Forecast-Category fields not dynamically changing

I have an existing action on a contact that creates a new Opportunity. The Stage field has picklist value mappings to the Forecast Category fields. On a Create-Record type of action, when the Stage ...
  • 111
1 vote
0 answers
2k views

Dynamically building a record edit form from fieldset

I am working on creating a lwc that builds a record edit for dynamically for case closure, to replace the classic functionality of the Case Close Page. I have a simple APEX class that I can pass a ...
  • 133
1 vote
0 answers
563 views

Display lightning:recordEditForm in a modal

I'm having issues saving my new record using the code below. I'm trying to override the standard "New" function with a custom lightning:recordEditForm on a modal interface. The modal opens ...
1 vote
1 answer
682 views

Issue with lightning-record-edit-form event order of execution between Parent and multiple Child LWCs on Submit

I'm new to LWCs development. I'm having an issue understanding the order of execution for the lightning-record-edit-form component when a Parent lwc has multiple Child lwcs. Each Child component ...
1 vote
0 answers
307 views

API NAME ACCOUNT IS INVALID, DID YOU MEAN "USER?" -- Lightning recordEditForm --Aura

I am simply pasting the code from this doc : <lightning:recordEditForm recordId="003XXXXXXXXXXXXXXX" objectApiName="Account"> <lightning:messages /> <...
1 vote
0 answers
3k views

How can I display sections in standard lightning-record-edit-form component?

I am working on an org where there already are existing and running projects, and several record types for the Case object. I am adding a record type, let's name it A. The component is supposed to ...
1 vote
0 answers
491 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
0 answers
250 views

Time field values not displayed in Lightning component when used recordForm

I have created one lightning component in which displaying record using lightning:recordForm. But, for the fields with type as Time value is not getting displayed, but if I click on edit then value ...
1 vote
0 answers
204 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 ...
1 vote
0 answers
40 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 ...
  • 13
1 vote
0 answers
3k 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="...
1 vote
0 answers
4k 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" ...
  • 5,738
1 vote
1 answer
507 views

Validation Rule error not showing in lwc near field even though error location specified

I have a validation rule error that fires when Defect__c has a value and DefectReason__c is blank. In the validation rule, I have set the error location to DefectReason__c. The error message shows ...
  • 495
0 votes
2 answers
18 views

LWC table with lightning-record-edit-form functionality

I need to create a table that can be edited. Doesn't necessarily have to be a "table" (def not a datatable). Can someone suggest a direction for me? I want to be able to have the fields look ...
  • 495
0 votes
0 answers
23 views

recordEditForm.submit() causes errors (sometimes)

We are using a component with a lightning:recordEditForm. The component is used in an screenflow on multiple pages. Everytime when we switch to antoher page or click the save button, an event is fired ...
  • 1
0 votes
1 answer
35 views

lightning-input-field not showing only in package

I have a lightning record edit form which properly shows in my dev org, but when it's packaged, the lightning-input-fields no longer contain any html. I've confirmed that data is properly sent from ...
  • 1
0 votes
1 answer
52 views

Persistent Input fields in LWC for iteration of records

We have a picklist field displayed using lightning combobox & standard record edit form which will run a iteration against collection of records and display various fields of that object in edit ...
0 votes
1 answer
42 views

lightning:recordEditForm and lightning:button not updating record

I have an Aura component that has a lightning:recordEditForm. In that form is a lightning:button. When clicking the button it should update the record but it is not. Here is the Aura component. Any ...
  • 326
0 votes
0 answers
169 views

lightning-record-edit-form not showing dependency properly if default value is selected. Is this a bug?

Scenario is : Object : ARecord__c Field 1: Controlling_Field__c, with values as CF1, CF2, CF3 Field 2: Dependent_Field__c with values as DF1, DF2, DF3, DF4, DF5 Record Type : Record 1 Now on ...
0 votes
0 answers
50 views

Modify multiple lightning:recordeditform fields before firing form.submit() method

I have Parent Component(to save Account record ) and Child Component(to save contact records). In parent component I have submit button. In both of the components I'm using lightning:recordEditform ...
0 votes
0 answers
323 views

lightning-input-field label text alignment

I am using lightning-record-edit-form and I want all labels in lightning-input-field for record fields to be centered. I don't also want to hide all these labels, override them- like <label for=&...
0 votes
1 answer
29 views

Aura Lightning Components - waiting for event or cmp.find('editForm').submit() to finish

I need to clone an item that contains lightning:recordEditForm before the user clicks submit and values are saved. The problem is that before my cloning I need to force recordEditForm to save. I ...
0 votes
0 answers
64 views

how to display custom address field of custom object using aura component

I have followed the steps as per new release about custom address field and created a address data type field in my custom object and then using <lightning:inputField fieldName="...
0 votes
0 answers
99 views

In LWC lightning:recordEditForm how to know the clicked button data-attribute

LWC lightning:recordEditForm has many buttons on-submit event need to know which button has been pressed. LWC component HTML <lightning:recordEditForm recordId=&...
  • 11
0 votes
0 answers
181 views

Scrolling issue with lightning-record-edit-form and input-field (picklist) drop menu

I came across this GitHub issue https://github.com/salesforce-ux/design-system/issues/587 where it is discussed about the scrolling issues with using lightning-combobox inside a modal. The resolution ...
  • 5,738
0 votes
1 answer
41 views

How to reset page on cancel button using RecordEditForm in salesforce aura components

Cancel button is not working while using recordeditform
0 votes
0 answers
132 views

How do I implement a CRUD Operation in Custom UI?

<lightning-record-edit-form record-id="b6B8A000000LBp1QAW" object-api-name="CBProgram__c"> <lightning-layout multiple-rows> <lightning-layout-item size=&...
0 votes
0 answers
191 views

Is it possible to make a custom lightning-record-form or something similar to it?

I have a lwc with 2 sections using lightning-record-form, but each section has its own 'Cancel' and 'Save' button (because of lightning-record-form). I'm trying to make just one, like the desired ...