Questions tagged [lightning-recordeditform]

64 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
9
votes
2answers
403 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 --> <...
4
votes
0answers
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
0answers
524 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
3answers
2k 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: ...
4
votes
0answers
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
votes
0answers
985 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
0answers
411 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" &...
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 ...
2
votes
1answer
100 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
1answer
134 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
1answer
1k 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 ...
2
votes
0answers
309 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 ...
2
votes
0answers
635 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
0answers
157 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
1answer
928 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
5answers
9k 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 ...
1
vote
1answer
93 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 ...
1
vote
0answers
86 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
1answer
172 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, ...
1
vote
0answers
74 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
92 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
0answers
77 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
0answers
29 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
0answers
1k 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 ...
1
vote
0answers
2k 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
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" ...
0
votes
0answers
16 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
24 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
0answers
48 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-...
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
65 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
0answers
25 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
295 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
12 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
25 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 ...
0
votes
0answers
41 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 ...
0
votes
0answers
31 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
37 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 ...
0
votes
0answers
71 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
292 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
379 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-...
0
votes
2answers
40 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:...
0
votes
1answer
398 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
0answers
24 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 ...
0
votes
0answers
270 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 ...
0
votes
0answers
244 views

Uncaught TypeError: Cannot read property 'classList' of null throws

Getting following error Uncaught TypeError: Cannot read property 'classList' of null throws Can anyone help me on this HTML: <div class="slds-p-around_xx-large"> <lightning-record-edit-...
0
votes
0answers
31 views

lightning:recordEditForm to create a new record, response coming as undefined

making use of lightning:recordEditForm to create a new record. I am using standard save functionality. After successful save of record I need to make use of the record Id. onSuccess: function(cmp,...
0
votes
1answer
256 views

lightning:recordEditForm - Set/update field values on related record

I'm new to LDS and I'd like to take advantage of this feature by limiting calls to the server. I'm able to view the proper field data, but having issues when it comes to updating the record. In the ...
0
votes
1answer
517 views

lightning-record-edit-form look up filter

<lightning-record-edit-form object-api-name="Contact"> <lightning-input-field field-name='AccountId' value="xxxxx"></lightning-input-field> <lightning-input-field ...
0
votes
0answers
26 views

lightning:accordionSection component not *RE_LOADing*

Facing an issue with <lightning:accordionSection>. There is a managed package which is rendering components in accordions we need to specify those components in config. However, now there is an ...