Questions tagged [lightning-recordeditform]

Filter by
Sorted by
Tagged with
0
votes
1answer
28 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
33 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
23 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
20 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
23 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
37 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
37 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
11 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
16 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
67 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 ...
0
votes
1answer
156 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
18 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
69 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
55 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
74 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
58 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
468 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
337 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
22 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. ...
0
votes
1answer
107 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
433 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
37 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
884 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
14 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
29 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 ...
1
vote
1answer
136 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
68 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
173 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
37 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: ...
0
votes
0answers
55 views

Check for null values on recordEditForm, onclick of custom button

When a user clicks my custom button I want to verify certain fields are filled in. When the user enters information in the input field the changes are not seen unless the save button is clicked twice ...
1
vote
2answers
404 views

how to display the label on right side of checkbox using <lightning-input-field>

As I am using <lightning-record-edit-form> & inside it I used <lightning-input-field>. My requirement is like If the input field is of checkbox then I want to display the checkbox ...
1
vote
1answer
113 views

Is it possible to bulk validate a records before submit using recordEditForm component?

Lightning Component <lightning:recordEditForm aura:id="editFormAccount" objectApiName="Account"> <table class="slds-table slds-table_bordered slds-table_col-bordered" style="min-...
0
votes
0answers
125 views

Lightning Datatable that is nested inside a recordEditForm call onSubmit() on every inline edit

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 a user does an ...
0
votes
0answers
554 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 ...
0
votes
2answers
809 views

LWC lightning-record-edit-form Custom Submit Button with Pre-default Values

sSample HTML Code: <lightning-record-edit-form object-api-name="Opportunity" onsubmit={firesubmit} > <div class="slds-grid"> <div class="slds-col slds-size_1-of-2"> <lightning-...
2
votes
1answer
304 views

LWC - Bypass Field-Level Security using Lightning-Input-Field?

Is it possible to create an LWC input form that bypasses field-level security, while still leveraging the powerful UI brought by <lightning-input-field>? Im creating a generic filter component ...
1
vote
0answers
129 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 '<'...
0
votes
2answers
72 views

Lightning component recordUpdated method binding triggers stale data event

Similar question I've a lightning component which will call a controller method on update action. Below is the code of the component, controller and helper: Component code: <force:recordData aura:...
1
vote
1answer
265 views

<lightning-input-field> not rendering when wrapped in child component

So I am trying to dynamically render out the fields of a Salesforce account, since this is supposed to be a package and I do not know what fields and rules the organization has on an account. However, ...
0
votes
1answer
735 views

Update displayed fields in a LWC of a related record when record changes

I have a LWC that calls an APEX class to query Contacts related to an account and display them. The LWC allows the user to update displayed fields. I am able to successfully call the APEX, display the ...
0
votes
3answers
445 views

Save form - Lightning component

I'm trying to save custom object's records using lightning component , the form contain lookup fields ( multi select records ) , i have developed a LC to be able to select multi records on custom ...
0
votes
1answer
192 views

Override lightning:recordeditform submit and use updated sobject record

I have lightning:recordeditform with two buttons. One of them is used to submit the form and save the sObject record based on the values entered in the inputfield of recordeditform. Second button ...
0
votes
1answer
473 views

lightning-record-edit form not taking the focus to the required field

I'm using lightning-record-edit-form in the component, inside that i've input-field with required set to true <lightning-record-edit-form record-type-id={recordType} object-api-name="Case" ...
0
votes
0answers
29 views

aura:valueChange not working properly with lightning:inputField in a lightning:recordEditForm

I need to map the AccountId when a ContactId is selected inside a lightning:recordEditForm. First I tried using an "onchange" event in the lightning:inputField, even that I was able to connect with ...
1
vote
1answer
110 views

lightning:recordEditForm QUERY_TOO_COMPLICATED error on page load

We're intermittently receiving a QUERY_TOO_COMPLICATED error when loading data on the lightning:recordEditForm. I see a solution on here for LWC's lightning forms, but haven't quite figured out a way ...
1
vote
0answers
92 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} ...
1
vote
0answers
130 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 ...
0
votes
0answers
364 views

lightning:inputfield - lookup field not working in Lightning Out - Salesforce1

I had a requirement, where I have to create a basic form so that users can have the functionality to create contact at the List view using a custom button. I have created a Aura Component and used ...
2
votes
1answer
129 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 ...