Questions tagged [lightning-recordeditform]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
36 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
27 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
16 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 ...
1
vote
1answer
20 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
23 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
20 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
2answers
42 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
56 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
22 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
45 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
1answer
48 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
46 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
25 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
24 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
55 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
80 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
93 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
25 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
97 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
14 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
0answers
53 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
39 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
41 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
106 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
47 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 ...
0
votes
1answer
67 views

Unable to edit a currency field in lightning-record-edit-form LWC

I have created a simple lightning-record-edit-form on QuoteLineItem object. I have two fields which i'm displaying Quantity & ListPrice. In the record edit form, i'm able to edit the Quantity ...
0
votes
1answer
47 views

How to edit the NEW modal dialog?

On Services. When I got to the Account tab there is a "NEW" button. Hitting this button will pop up a modal with a couple of fields. How do I edit this modal? I would like to add an iframe to it.
0
votes
0answers
197 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
1answer
152 views

Use variable from lightning:recordEditForm in aura:if

I would like to know if it's possible to evaluate the expression from the RecordEditForm. This component's "else" is never hit. Are aura if tags supported within RecordEditForms? ...
3
votes
1answer
287 views

How to programmatically submit a lightning-record-edit-form?

The lightning-record-edit-form has a documented submit method that I assume can produce similar behavior to a click on a nested submit button. But I can't find any examples of this. The documentation ...
0
votes
0answers
26 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
88 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
229 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 ...
2
votes
1answer
65 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 ...
0
votes
0answers
22 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 ...
0
votes
0answers
23 views

Avoid Auto focus on lightning input field of type Lookup

I have a Table that I populate with list of objects through Aura Iteration . One of the column is a lightning:inputField of type look-up , it is inside a lightning:recordEditForm. The problem is ...
0
votes
0answers
384 views

<lightning-record-edit-form> - Display client side validation errors on top

I have a created a custom LWC component that uses <lightning-record-edit-form> component to create a custom record creation UI. It dynamically fetches the page layout metadata and then renders ...
0
votes
0answers
414 views

Weird behavior of <lightning-record-edit-form> in LWC

In my LWC, I update two fields of a custom object through a modal. The <lightning-record-edit-form> updates only one field (multiselect picklist) and not the other (checkbox). I have the ...
0
votes
0answers
39 views

How to enable usage of lightning-record-edit-form's onSuccess for Guest User Profile?

How to enable usage of RecordEditForm's onSuccess for Guest User Profile? I am creating a case submission form that needs to be used by both authenticated and guest users. I am using a record edit ...
0
votes
2answers
195 views

Limit Fields in lightning-record-edit-form

I have a lightning-record-edit-form in a LWC. I started getting the QUERY_TOO_COMPLICATED error when loading the form. I have little to no control over the object so I can't simplify it. My ...
5
votes
2answers
323 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 ...
0
votes
1answer
184 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....
3
votes
1answer
137 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 ...
1
vote
0answers
57 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
253 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
469 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
264 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
708 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 ...
2
votes
2answers
501 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
609 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 ...