Questions tagged [lightning-recordeditform]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
20 views

Error: Unknown public property “name” of element <LIGHTNING-INPUT-FIELD>. This is likely a typo on the corresponding attribute “name”

I am getting this issue in the console: Error: Unknown public property "name" of element . This is likely a typo on the corresponding attribute "name". However, this component was ...
0
votes
0answers
13 views

Restrict handleload to be called once in lightning-record-edit-form [closed]

In LWC using lightning record-edit-form to create a form record edit form. handleload method is called two times one at the time of load and again once any field value is changed. can anyone please ...
0
votes
0answers
12 views

The Requested resource does not exist error in Lightning record edit form

I'm getting The requested resource does not exist error while trying to create record using lightning record edit form . Have checked multiple times the profile has access to create & read the ...
0
votes
0answers
40 views

Deserialize JSON to Object given an JSON String and an sObjectApiName

I created a generic LWC using a lightning-record-edit-form where user specifies sObjectName and fields to display as parameters and the edit form will display those. <lightning-record-edit-form ...
0
votes
1answer
21 views

Is it Possible to Apply the panelOnDestroyCallback Callback Parameter to the force:editRecord Event by Updating the $A Namespace?

Is it possible to update a copy of the $A namespace object to handle callbacks where they are not otherwise handled? For example, the force:createRecord event has the panelOnDestroyCallback callback ...
0
votes
0answers
20 views

How can i prevent my lightning record edit form from submitting on “ENTER” key press?

Lightning Record edit form Submits when "ENTER" key is pressed. I want to remove this behavior. How can i prevent my lightning record edit form from submitting on "ENTER" key press?...
1
vote
1answer
19 views

getParam(“recordUI”) on recordEditForm onload event returns 'undefined'

In a Tabs component, I am using a Record Detail component along with custom components in the Opportunity object. The goal of the custom pages/components is to display fields spread in different tabs ...
0
votes
0answers
19 views

How can we add onblur event for lightning:inputField

I need to add onblur event for lightning:inputField. Right now as per the documentation (https://developer.salesforce.com/docs/component-library/bundle/lightning:inputField) I dont see a direct by ...
0
votes
0answers
105 views

Record Form and Record Edit form showing Id on the output field (lookup) instead of record name

I am using lightning-record-form and lightning-record-edit-form to display some records where I have several lookup-fields displayed, the lookup fields when rendered as output, should show the names ...
0
votes
2answers
267 views

lightning-input-field reportValidity and stop execution

I have an lwc form that consists of a lightning-record-edit-form and some lightning-input-fields I have to override the submit button with apex as I have to perform some custom logic. There are some ...
0
votes
0answers
21 views

Dependent picklist values are not pre-populated in record-edit-form

I am using a set of dependent picklists in a lightning-record-edit-form. When the form is loaded with a recordId set, the record has all the fields filled, only the controlling picklist values are ...
0
votes
1answer
19 views

onsubmit event requirement in lwc

I have a requirement where I need to submit a feedback I am having two fields: NAME, FEEDBACK I am using the record edit form in LWC and there are other fields for feedback which are lookup fields of ...
0
votes
1answer
112 views

LWC lightning-record-edit-form lookup values are null

I have an LWC which contains multiple lightning-record-edit-forms, when I save one (say the Account) I want to populate the AccountId on the lightning-record-edit-form for a Contact: <template> ...
2
votes
3answers
190 views

LWC lightning-record-form Time field edit

I have a lightning-record-form for a custom object, which I show and allow to edit with the basic element's features: <lightning-record-form record-id={opId} object-api-name="Operation__c"...
0
votes
2answers
78 views

lightning-record-edit-form with lightning-input-address show-address-lookup to true to create an Address record

I am creating a custom LWC component to create a new Address record. I've used the lightning-record-edit-form like below, <template> <lightning-record-edit-form record-id={currenRecordId} ...
0
votes
1answer
34 views

Resetting lightning:recordEditForm not working -AURA

This is my controller : clear : function(component,event, helper) { component.find('field1').forEach(function(f) { f.reset(); }); component.find('field2').forEach(function(f) { f....
1
vote
0answers
40 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 /> <...
4
votes
2answers
95 views

Override the label and helptext for a lightning-input-field

I have a lightning-record-edit-form with lightning-input-field components inside. I don't want to display the standard field label because the 40 character constraint is too much. Instead, I've ...
1
vote
1answer
95 views

The success event returned from `lightning-record-edit-form` is missing fields that I have in my component

I have a custom lightning-record-edit-form component that looks like this: <lightning-record-edit-form record-id={id} record-type-id={recordTypeId} object-api-name="Account"...
0
votes
1answer
30 views

LWC render nested component within lightning-record-edit-form

I am working on building a LWC that componentizes lightning-record-edit-form, but the form cannot evaluate the lightning-input-field when the fields are nested within another component. The basic ...
0
votes
1answer
64 views

lightning:input type=“time” displays millisecond value when editing object

I am building a lightning component to create/edit custom objects. I've been able to do this with force:inputFields in the past but unfortunately ran into a component error that the new recommended ...
0
votes
1answer
152 views

How to display non-editable lookup in LWC lightning-record-edit

I am building a component using a lightning-record-edit-form, which may either display an existing record for edit, or a new record for create. The component will set the record-id appropriately. ...
0
votes
2answers
25 views

Ligtning:recordEditForm onload , onSubmit ,onSucess action values

I have a doubt .During onLoad action ,are the record values the old and during the onSucess the record values are updated ? I want to send both the old and updated values of the record updated using ...
0
votes
0answers
25 views

Lightning:recordEditForm error

I have used Lightning:recordEditForm to edit a preexisting record'scertain field. But it shows an error "Required fields are missing: [Name, StageName, CloseDate]". I believe this should ...
0
votes
0answers
64 views

Editing a record using lwc record-edit-form does not submit values

I am new to lwc and trying to create a lwc for updating contact record fields. I am using the lightning-record-edit-form component. But, when I try to submit the form nothing happens, no errors and ...
0
votes
1answer
46 views

How to submit 1 lightning-record-edit-form and run onsubmit method param?

when I use the below code to submit each form, onsubmit={handleSubmit} doesnt run. Why? <lightning-record-edit-form key={item.id} object-api-name="professionalExperience__c" onsubmit={...
0
votes
1answer
74 views

Determine field type lightning-record-edit-form

On a lightning-record-edit-form page, how you determine the field type(text, lookup, picklist)? Thank you, P
0
votes
0answers
12 views

How to update only the lightning-edit-record object for which fields got changed when there are multiple lightning-edit-record forms

I have a form which has multiple lightning-edit-record form. For example, my form looks like: <lightning-record-edit-form object-api-name="Machine_Configuration__c"> <...
0
votes
0answers
20 views

Lightning-Record-Edit-form - Triggering Save of Record

I have a Lightning-Record-Edit-Form and do have this working when using a button that has the type="submit". I created a separate button that the user will click to open up a closed ...
0
votes
1answer
269 views

How to get a record's updated value using lightning-record-edit-form in LWC?

I use the lightning-record-edit-form for my custom lead conversion and override the save button. However I cannot find a good documentation to get the updated values of the lead. The lead needs to be ...
1
vote
1answer
389 views

Submit Button Not Working When Placed Outside Lightning-Record-Edit-Form Tag in Salesforce LWC

In my sample LWC page, I replicated the standard Edit button in Case object, then placed it inside a modal. Record update working so far, but I notice that footer containing Cancel and Save buttons ...
0
votes
0answers
19 views

RecordEditForm with iteration shows no fields on rerender

I have a wizard with a few steps. On the first screen I have a lightning:recordEditForm that uses aura:iteration to display a set of fields retrieved in component's onInit method from metadata. All ...
0
votes
1answer
162 views

recordEditForm : event.preventDefault() not submitting the pre populated values in the form

I have a custom aura component for record creation. The onload() function calls the apex method to load values in the form. When I try to submit the form by using onsubmit(), the new record is created ...
0
votes
1answer
67 views

Both inputField and outputField inside lightning:recordEditForm

I am trying to enter some value inside Description field, and I want to get the same text inside lightning:outputField as below: <lightning:recordEditForm aura:id="recordEditForm" ...
0
votes
2answers
205 views

Editing fields before submitting for multiple lightning:recordEditForm

I am trying to create a page so that I can create multiple sObject records in a single button click, with the help of lightning:recordEditForm component. I checked the below link, and looks like this ...
0
votes
0answers
79 views

LWC Record View Form: Error: Field [xyz__c] was not found

Although I have access to the field and the field is in the layout, I am getting error in Developer Console (Chrome). Error: Field [xyz__c] was not found Code Snippet below: <lightning-record-...
1
vote
1answer
903 views

Why is <lightning-input-field> not setting value of checkboxes in LWC?

I am getting data in my LWC from a wrapper class. In that data, I get object API name, field API name and value present in the field in the form of Strings. I iterate over the data from the wrapper ...
0
votes
1answer
670 views

How to remove help text of lightning-input-field in LWC

I have inserted LWC on VF page using lightning out. In my LWC, I have used lightning-input-field. The help text on the label is not displaying properly. I am guessing that it's because of lightning ...
0
votes
0answers
26 views

How do I create a product along with it's pricebooks at a time?

I'm using lightning-record-edit-form to create a new Product field. I need to create it's pricebook values along with it. How do I achieve this? I tried nesting record-edit-form but it isn't working. ...
1
vote
1answer
178 views

Unable to edit StateCode & CountryCode in LWC lightning-record-edit-form

I currently have a set of address fields in a Lightning-record-edit-form. I am able to update all of the fields except for the StateCode & CountryCode Fields. They display as disabled. Here is the ...
0
votes
1answer
696 views

Address Field on LWC Lightning-record-edit-form

I am having difficulty updating the standard lead address field on a LWC in a Lightning-record-edit-form. I am able to update the other fields in the form though. Here is the HTML: <lightning-...
0
votes
0answers
58 views

In LightningrecordEditform, event.preventDefault() doesn't work and save the record with the data

I am using Lightning component and in that I have a Recordeditform now on submit I check for the validations of fields and if there needs to be some error then I use event.preventDefault() and set the ...
0
votes
2answers
2k views

Submitting a record to create using lwc record edit form

I have an object Foo__c that has MD relationship to Zoo__c object. I am trying to create Foo__c record using lightning-record-edit-form. This is for learning purpose. Below is my code: HTML: <...
0
votes
0answers
17 views

Identify Lightning RecordEditForm in Aura Iteration

I am using multiple Lightning Record Edit Forms in Aura Iteration and wish to uniquely identity the form when onerror is fired 1.Below is my Component. <aura:iteration items="{!v.episodeList}&...
0
votes
0answers
42 views

Override Custom Field in Lightning Edit Form

Working on implementing the override input documentation here on a standard lightning-edit-form. The challenge that I'm running into is that when I attempt to do it the way that salesforce says to, I ...
2
votes
2answers
274 views

when required fields are missing in lightning-record-edit-form

When required fields are missing in lightning-record-edit-form does it call any javascript method when clicked on submit button? I checked 'onsubmit' and 'onerror' it didn't call either of them. How ...
2
votes
0answers
30 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 ...
0
votes
0answers
103 views

Close tab of lightning:recordEditForm from lightning component

I have a lightning component that I am opening through a related list by overriding New button. I used lightning:recordEditForm in lightning component to create and edit records of related object. On ...
2
votes
1answer
258 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 ...
0
votes
0answers
48 views

Is it possible to Clone previous row values to the next row? Dynamic add, delete row functionality

<lightning:recordEditForm aura:id="editFormAccount" objectApiName="Account"> <table class="slds-table slds-table_bordered slds-table_col-bordered" style="min-width: ...