Questions tagged [lightning-recordeditform]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
27 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 ...
1
vote
1answer
22 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
30 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
65 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
59 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? Comments__c is a ...
3
votes
1answer
72 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
23 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
28 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
76 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
44 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
18 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
19 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
213 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
259 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
24 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
118 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 ...
3
votes
2answers
193 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
128 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....
2
votes
1answer
99 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
35 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
81 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
336 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
200 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
388 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
344 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
372 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 ...
0
votes
0answers
56 views

Why does a datatable that is nested inside a recordEditForm call onSubmit() on every inline edit?

As per the title, 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 ...
2
votes
1answer
502 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 ...
0
votes
1answer
163 views

oldValue and newValue on lightning:inputField?

I'm using lightning:recordEditForm for users to change values on a specific record. The form looks like this: <lightning:recordEditForm aura:id="form" onsubmit="...
3
votes
2answers
4k views

Building an efficient LWC form without record-edit-form

I'm new to Lightning web components (LWC) and I'm trying to find the best way to build an input form where I need to control the submit process - I need to do extra validation and then construct a ...
0
votes
2answers
276 views

How to save record from a different object using nested recordEditForm

I have managed to get fields from two different objects to display in one lighting component but I am having a few problems off the back of this. When saving it will only save the main record and ...
2
votes
2answers
182 views

Record edit form not accessible by a user

This question is the extension of THIS question. Posting again (with simplified code) as I am blocked in this issue. Even for very simple form as below I am getting [object object] error. <...
0
votes
1answer
50 views

How to pass parameter to recordEditForm on init

I have 2 child components in a wizard the first on the first page the second on the second page. I pass a recordtype Id from the first component to the second component trough an event how do I pass ...
1
vote
0answers
26 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
1answer
454 views

How to Pass values from Record-Edit-Form to Apex method LWC

I am using below record-edit-form to create record - After button click i am getting rec object as null {}. How to pass the values from inputfields to apex. The lightning-button is in footer of a ...
0
votes
1answer
663 views

Can't pre-populate datetime value in <lightning-input-field>, Summer '19 change/bug?

This issue has just appeared since Summer '19 rollout. It was working correctly before. I have an LWC with a <lightning-record-edit-form> for creating a new appointment record (so no record-id ...
0
votes
0answers
68 views

Record Edit Form set Date inputfield value

I'm attempting to set the value of a Date input field with this value: '2019-8-25'. It's populating in the UI, but when I try to submit the form it's showing I'm setting it like so: let date = new ...
0
votes
1answer
477 views

lightning:recordEditForm Need to send recordEditForm data back to Apex controller

I am new to Lightning and i have designed a component using recordFormEdit. On the recordFormEdit handleOnSubmit action, i am sending the data back to object using the standard functionality(Without ...
0
votes
1answer
635 views

lightning:inputfield | pre-populate with parent record data

I am working on my first Lightning component and cannot figure out how to access values on the parent record when creating a child record. The component is shown on the parent record and I can get the ...
0
votes
1answer
725 views

Submit Record Edit Form for every object in Aura iteration

I have a Contact object form with a child form component for Buying Center objects. When I upsert the Contact, I need to submit a list of Buying Centers for this Contact. Parent Contact component has ...
0
votes
1answer
235 views

LWC Lightning Record Edit Form Case Assignment Rules

Is it possible to somehow trigger case assignment rules upon creation of a case via a lightning-record-edit-form? It used to work when I had it set in page layouts but that seems to no longer be the ...
2
votes
1answer
352 views

event.detail is undefined in Lightning:recordEditForm submit event

I'm trying to get field values at Lightning:recordEditForm onSubmit() event.In the documentation example it shows below. my onSubmit event handler as below, I end up getting error, [event.detail ...
0
votes
2answers
503 views

Focusing on an input Field when using <lightning:inputField>

I am using lightning:recordEditForm to display to users custom creation form and using lightning:inputField. However, I am unable to set focus on a particular field. I know that Salesforce doesn't ...
1
vote
1answer
2k views

LWC - Handling Save Event on Record Edit Page

I have a <lightning:datatable> in which I have a rowAction which triggers and shows an edit record page (in a modal), as follows: HTML <lightning-datatable columns={columns} ...
1
vote
2answers
1k views

lightning:recordEditForm | Some input fields not being displayed

I'm trying to create a new form for a custom Object in salesforce. This is my form Code: <lightning:recordEditForm aura:id="MyFormId" objectApiName="...
1
vote
1answer
168 views

How to find a dynamically assigned aura:id?

I'm looking for getting a dynamically assigned Aura:id. Below is my attempt to read it in Lightning:recordEditForm. Component markup: <aura:component > <aura:handler name="init" value="{...
0
votes
0answers
121 views

How to bypass FLS for Lightning:recordEditForm for Community Guest User

I'm trying to update a Contact record as Guest Community User. Lightning:recordEditForm seems does not allow community guest user to load or save the record, and gives me following error on community ...
3
votes
3answers
646 views

How to read lightning:recordEditForm Object instead of using API

I got 3 lightning:recordEditForm components on a wizard (3 pages handled by slds-hide/show) to capture details. At the last wizard page it must save first object, and 2nd object must get first object'...
2
votes
2answers
284 views

Summer 19 breaks undocumented lightning:inputField feature - variant=“label-hidden”, what are alternatives?

Seems like attribute doesn't work anymore. I know before label-hidden variant, I used to be able to hide labels using some CSS. Unsure what it was anymore.