Questions tagged [lightning-recordeditform]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
13 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
42 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
74 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
61 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
49 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 ...
0
votes
0answers
24 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
19 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
162 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
97 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
152 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 ...
1
vote
2answers
146 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
195 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
32 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
260 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
61 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
1k 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
101 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
1answer
84 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
27 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
203 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
335 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
53 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
296 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
400 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
443 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
151 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
183 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
295 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
1k 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
947 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
116 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
77 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
473 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
274 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.
2
votes
1answer
391 views

Can't change case Owner in Aura using <lightning:recordEditForm>

Is there any way to change Owner of case using Lightning record edit form? I Want to use OwnerId Field only. When I use <lightning:inputField variant="label-hidden" fieldName="OwnerId" ...
0
votes
1answer
52 views

Why doesn't my field assignment work for lightning:recordEditForm?

I have a component with a lightning:recordEditForm that I build using an aura:iteration over fields from a field set for Order Products. I've added a custom submit method in my controller that makes ...
5
votes
1answer
359 views

variant='label-hidden' Not Working for lightning-input-field When field is a Lookup

I have a Lightning Web Component and in that I'm using a lighting-record-edit-form. I'm trying to use a custom label for an input by hiding the default one for the lightning-input-field and adding my ...
0
votes
0answers
552 views

Lightning Record Edit Form onsuccess not firing

Having issues getting the onSuccess Event to fire on my Lightning:recordEditForm. My submit button is outside of the Lightning:recordEditForm and that works perfectly but i'd like to have the ...
0
votes
1answer
254 views

Use variable from lightning:recordEditForm in aura:if / ternary statement

I want to conditionally render one of the fields from recordEditForm. I've already done with attributes that are outside of form, but this time I want to bind the directly. Thinking something like ...
0
votes
0answers
60 views

How to validate lookup lightning input field in record Edit form

I have a record edit form with multiple custom lookup fields. Standard validation rules on lookup fields with an invalid input would give an error message "An invalid option has been choosen". Looks ...
0
votes
1answer
372 views

Saving Lightning Select Value

I'm trying to display a drop down on a custom component and once a value is selected I would like to update the value in the database. I'm finally able to load the values from the database, set the ...
0
votes
0answers
36 views

Retain previously entered lookup values in a Flow

Was wondering if there is a way to save a previously entered lookup value in a flow? i want to give my users the ability to click previous and still have the value they just looked up be there. It ...
0
votes
1answer
43 views

recordEditForm fails to rehydrate picklist fields

I've noticed that recordEditForm fails to load picklist values. It saves them properly, but try to reload page and picklist fields are blank, while checkboxes and text fields are fine. Feels like a ...
2
votes
0answers
118 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 ...
0
votes
0answers
61 views

Getting error in higher environment org - Test Environment (SIT), but not in development environment

I am facing a weird issue with lightning record edit form that was not coming till yesterday and is coming only in SIT and not in the lower environment developer org. The issue is when a user selects ...
0
votes
0answers
129 views

how to remove lable in lightning record edit form fields [duplicate]

i want to remove field label in lightning:inputfield.i use variant="label-hidden",but lookup fields labels are not removing it removing label for other type fields.
3
votes
0answers
868 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....
1
vote
1answer
1k views

Setting today's date from lightning controller

I am new to salesforce lightning. I have a recordEditForm that I want to submit and before submit I want to make set field TODAY's date from the lightning component controller.I am not able to set the ...
0
votes
0answers
305 views

Lightning:inputField Could not find picklist values for field using GlobalValueSet

I'm using the lightning components lightning:recordEditForm and lightning:inputField to compose a form for a Record Creation. the component works correctly as long as I do not use a picklist field ...