Questions tagged [lightning-recordeditform]
The lightning-recordeditform tag has no usage guidance.
242
questions
0
votes
0
answers
46
views
LWC - lightning-record-edit-form 'onsuccess' Method Only Triggering Once
I have a LWC to replace the standard New button on the Opportunity object. This LWC presents the user with a lightning-record-edit-form so they can input the Opportunity details. They can then either ...
0
votes
1
answer
87
views
Can I call notifyRecordUpdateAvailable method in the function called in onsuccess handler of lightning-record-edit-form?
I have a lightning-record-edit-form in which I am editing a record. Once the record is updated successfully, I want to refresh the related lists automatically on the record page.
Can I use ...
0
votes
1
answer
53
views
Lightning Layout scrollable is breaking the table and showing only few columns
I am working on the Custom product family selection LWC component, I added the rows and columns in the lightning layout using table. For 4 fields the table is showing all the rows and columns, but if ...
0
votes
2
answers
53
views
Recordeditform - Checkbox Issues
I've an Aura component where recordeditform is used to create contact record. I added a checkbox field to the recordeditform but it doesn't save to created records.
<lightning:recordEditForm aura:...
0
votes
1
answer
173
views
Reset lightning-record-edit-form values to passed-in values
I am using a lightning-record-edit-form to create a campaign. I am defining the default value for a rich text field using a variable:
<lightning-record-edit-form object-api-name="Campaign"...
0
votes
0
answers
88
views
DATETIME Field value doesn't show in Lightning-Record-Edit-Form
I have a problem with visability of Date/Time values in Lightning-record-edit-form.
This is my code:
<lightning-record-edit-form object-api-name="Event_Calendar__c" onsuccess={...
0
votes
0
answers
123
views
Change in RecordTypeId is not refreshing lightning-record-form
I am creating a lwc component form which creates a new Opportunity using lightning-record-form and a default recordtypeid value.
As there is no option to select recordtypes in lightning-record-form, I ...
0
votes
1
answer
23
views
How can I get a specific Lightning:inputField cmp without change the aura:id
I have a component with 2 inputFields like this:
<lightning:recordEditForm
recordId="{!v.recordId}"
aura:id="recordEditForm"
objectApiName="Example__c"
>
<...
0
votes
2
answers
478
views
Call apex method from Submit button of lightning-record-edit-form
I have a form and using lightning-record-edit-form I'm creating multiple records.
I want to process the values of form further before saving them in Salesforce and for that reason I want to call ...
0
votes
0
answers
71
views
Require a field to be filled out before a record tab is closed
On my chat transcript lightning record page, I have a LWC component added that is a lightning-record-edit-form. This form contains two custom fields for the user to quickly and easily fill out. The ...
1
vote
1
answer
530
views
Salesforce LWC edit form not showing input fields
I have poured through the articles and answers, tried updating the code base to some solutions based on those articles, checked FLS and Profile access to ensure proper access to the fields and I still ...
1
vote
0
answers
228
views
Unable to set custom field value in lightning record edit form
I have a button that creates a new case. There are different record types for Case Object and I need to create a record for a specific record type only. I am using lightning-record-edit form to ...
0
votes
1
answer
705
views
Getting value of specified field in lightning record edit form
Can you please help with below issue. i am trying to get name of field or key of lighting record form when phone number is changed. Every time when i try to print the name it's giving name of very ...
-1
votes
1
answer
303
views
LWC: Alignment lost when using Name in Lightning-record-edit-form
I have a requirement to mimic the create contact form in LWC. For this, I am using lightning-rec-rd-edit-form. When I use Name field, it consumes 4 rows as it has Salutation, First name, Middle name, ...
0
votes
1
answer
70
views
How to update a different object using the attribute recordId <lightning:recordEditForm?
I'm trying to update an object which is created when the init method is called. I'm using <lightning:recordEditForm along with <lightning:inputField to capture the fields and map them to the ...
0
votes
1
answer
93
views
lightning-record-edit-form submit issue
I'm trying to iterate over lightning-record-edit-form to update a list of records 1 at a time. It works great until I hijack the submit to change fields before submitting. I've used querySelector to ...
0
votes
1
answer
338
views
dynamically show button when a value changes
I'm iterating over a list of Cases and displaying a lightning-record-edit-form for each Case. I want to dynamically show/hide a save button at the end of each row if a value is changed in that row. ...
0
votes
2
answers
1k
views
LWC table with lightning-record-edit-form functionality
I need to create a table that can be edited. Doesn't necessarily have to be a "table" (def not a datatable). Can someone suggest a direction for me? I want to be able to have the fields look ...
0
votes
0
answers
64
views
recordEditForm.submit() causes errors (sometimes)
We are using a component with a lightning:recordEditForm. The component is used in an screenflow on multiple pages. Everytime when we switch to antoher page or click the save button, an event is fired ...
0
votes
1
answer
140
views
Which permissions are required to implement an LWC record edit form?
I'm developing an LWC with a custom record edit form and running into an issue with permissions displaying the form. I've ruled out field-level permissions being an issue by removing every field on ...
0
votes
1
answer
123
views
lightning-input-field not showing only in package
I have a lightning record edit form which properly shows in my dev org, but when it's packaged, the lightning-input-fields no longer contain any html. I've confirmed that data is properly sent from ...
0
votes
1
answer
1k
views
Persistent Input fields in LWC for iteration of records
We have a picklist field displayed using lightning combobox & standard record edit form which will run a iteration against collection of records and display various fields of that object in edit ...
0
votes
3
answers
869
views
LWC Reset Input Fields on Record Edit Form then Update Variables - Error e.forEach(...).then is not a function
I am trying to update variables immediately after I reset the Input Fields from my Record edit form.
Below is the Event Code from the JS. When it is run I receive the error - [e.forEach(...).then is ...
2
votes
1
answer
477
views
Refresh related list after creating a record via LWC quick action
I built a screen action LWC that uses lightning-record-edit-form and lightning-input-field to create a new record. The quick action is placed on a parent record page and adds a related child record to ...
0
votes
1
answer
226
views
Account Lookup field is not saved in record edit form
I have custom button in Opportunity. On click of button i am creating a quote. I want to populate Opportunity name and account id and few fields in quote. Here all my fields are there in quote creatin ...
1
vote
0
answers
651
views
LWC Fires on Change Event when Record Edit Form Picklist Fields are reset
On my Lightning Page I am using a Record Edit Form with Input fields for Picklists and Text.
When any of the Input fields are changed the onchange Event Handler is firing the HandleChange Event. This ...
0
votes
1
answer
170
views
lightning:recordEditForm and lightning:button not updating record
I have an Aura component that has a lightning:recordEditForm. In that form is a lightning:button. When clicking the button it should update the record but it is not. Here is the Aura component. Any ...
0
votes
1
answer
649
views
lwc clone an opportunity product using record-edit-form
I have a LWC called Opportunity Product Manager
which shows all the opportunity products.
Each Opportunity Product is a LWC itself which has 2 buttons: Edit and Clone. Pressing on these buttons open a ...
0
votes
1
answer
347
views
Lightning-edit-form submit only after custom code execution
I am creating LWC which will have both <lightning-record-edit-form> and <lightning-record-view-form> elements. I am toggling between these elements to edit and display the record.
My code ...
0
votes
0
answers
449
views
lightning-record-edit-form not showing dependency properly if default value is selected. Is this a bug?
Scenario is :
Object : ARecord__c
Field 1: Controlling_Field__c, with values as CF1, CF2, CF3
Field 2: Dependent_Field__c with values as DF1, DF2, DF3, DF4, DF5
Record Type : Record 1
Now on ...
1
vote
0
answers
203
views
Create Record LWC Lightning-Record-Edit-Form Stage to Forecast-Category fields not dynamically changing
I have an existing action on a contact that creates a new Opportunity. The Stage field has picklist value mappings to the Forecast Category fields. On a Create-Record type of action, when the Stage ...
0
votes
2
answers
459
views
Is nesting supported by lightning-record-edit-form?
To save quite a lot of work, it would be great if this is supported:
<lightning-record-edit-form record-id={record1Id} object-api-name="Type1__c">
...
<lightning-record-edit-...
5
votes
1
answer
996
views
How to improve the user experience for picklists in a lightning-record-edit-form in a modal?
I have a lightning-record-edit-form allowing the edit of 3 lightning-input-fields displayed in a modal.
The third field is a picklist:
so when clicked on the options get clipped and the user has to ...
0
votes
0
answers
215
views
Modify multiple lightning:recordeditform fields before firing form.submit() method
I have Parent Component(to save Account record ) and Child Component(to save contact records).
In parent component I have submit button. In both of the components I'm using lightning:recordEditform ...
0
votes
1
answer
993
views
Error handling using aura record edit form
Is it possible to remove or hide this standard lightning message?
I have overridden the new button with the aura component and used the record edit form and handling error In the controller, but I don'...
0
votes
1
answer
56
views
Aura Lightning Components - waiting for event or cmp.find('editForm').submit() to finish
I need to clone an item that contains lightning:recordEditForm before the user clicks submit and values are saved. The problem is that before my cloning I need to force recordEditForm to save. I ...
0
votes
1
answer
51
views
How to reset page on cancel button using RecordEditForm in salesforce aura components
Cancel button is not working while using recordeditform
0
votes
1
answer
2k
views
Populate LWC from fieldset
I am trying to populate an LWC form using field sets.
Currently I am populating a combo box with metadata records
Call Class to populate combo box and FieldSet
@AuraEnabled (cacheable=true)
public ...
0
votes
1
answer
2k
views
How to conditionally show fields on record edit form
I am using record-edit-form and want to conditionally show fields on change of checkbox
HTML
<lightning-input-field field-name="Line_of_cover_Accident__c" onchange={toggleAccidentFields}&...
0
votes
0
answers
23
views
How to set an input field value on change of checkbox [duplicate]
I'm trying to modify the field values using lightning:recordEditForm. I have one checkbox and one date time field. On change of the checkbox, current date time should be populated on to the date time ...
0
votes
0
answers
33
views
How to submit two records and assign it to parent using lightning-record-edit-fom
Scenario : I have two custom objects
Application__c
Applicant__c
Application__c is the master object of Applicant__c.
On Application__c object , i have a created a custom picklist field called ...
1
vote
1
answer
2k
views
Add blank space in record edit form LWC
I have an LWC Record Page component that has two columns. The two columns have almost the same number of fields with one exception. I need to add a blank space on the second column:
<div class=&...
0
votes
0
answers
198
views
lightning-input-field with time type not applying gmt offset when saving
I have a lightning-record-edit-form which is rendering a lightning-input-field that happens to be of type Time.
The input renders correctly, however when I save the form, the offset from my timezone ...
0
votes
1
answer
4k
views
In LWC is there a way to Save selected Radio Button value to a record
My requirement is to display picklist values as radio buttons in a Lightning record edit form, but I am unable to save the values selected from the radio buttons to the record. Default save button of ...
1
vote
1
answer
3k
views
Creating record via lightning-record-edit-form. Record not saving and no errors
I've created a lightning record edit form that should create a brand new account record. I have a onsuccess={handleSuccess} and onerror={handleError} defined, but when pressing save the record is not ...
0
votes
0
answers
2k
views
How onclick will work if the button on the parent lwc component and the lightning-record-edit-form is on the child lwc component?
I have tried to create LWC's for a record creation/ Update like below.
Parent LWC component,
<template>
<lightning-button variant="brand" label="Click Here" title="...
0
votes
1
answer
347
views
Lightning Component: multiple lightning:recordEditForm - access / populate specific field values with calculations
I have a lightning component which holds multiple lightning:recordEditForm's populated in an aura:iteration.
<aura:iteration items="{!v.records.all}" var="record">
<...
0
votes
2
answers
1k
views
lightning-record-edit-form record id not binding
I have a record edit form on which I'm binding my record id. When I pass record ID as hardcoded form then the lightning record edit form gets loaded but when I'm passing that ID dynamically record ...
0
votes
1
answer
955
views
How to save Radio group and toggle input data into database?
Html
<div class="grid-child purple">
<lightning-layout vertical-align="start" class="general-form-layout" multiple-rows="true">
<lightning-...
0
votes
1
answer
1k
views
How to add dynamic fields to "onsubmit" method in lightning-record-form in LWC
I'm new to Lightning Web Components development.
I have 3 fields to populate values, out of which 2 are picklist fields which requires user input, to which i use lightning-record-form with "edit&...