Skip to main content

Questions tagged [lightning-recordeditform]

Filter by
Sorted by
Tagged with
3 votes
0 answers
32 views

Replicate a Dynamic Form's Conditional Rendering in a L:WC Record Edit Form

A Custom Object has been converted to use Dynamic Forms, and the admin has implemented conditional rendering for several fields e.g. only show field b if field a = 'Hospital' This conditional logic ...
BritishBoyinDC's user avatar
1 vote
0 answers
59 views

Lightning Record Edit Form saving issue

I have an issue with my Aura Component, where when users save the Component I am getting an email with the error printed in it. The error is: Action failed: lightning:recordEditForm$controller$submit [...
LewisSS's user avatar
  • 11
0 votes
1 answer
80 views

Missing required picklist inputs not scrolled to when a lightning-record-edit-form is submitted (but text fields are)

My lightning-record-edit-form (running in a Digital Experience) scrolls to off the screen text fields that are required but not filled in when the submit button is clicked. But the scrolling doesn't ...
Keith C's user avatar
  • 136k
0 votes
0 answers
215 views

When creating a lightning-record-edit-form with two columns, the fields are not occupying the full width of the page

I have created a lightning-record-edit-form with two columns, but in the UI, the fields are not occupying the full width of the page. I have tried various approaches, including using SLDS, layout ...
Neeraj Rautela's user avatar
0 votes
0 answers
573 views

Pre populate fields in lightning-record-edit-form in lwc irrespective of the record page

I have a lightning-button which onclick will show a lightning-record-edit-form to create a Case which contains 2 lookup fields AccountId (Lookup to Account) Opportunity__c (Lookup to Opportunity) I ...
tycoon's user avatar
  • 3
0 votes
1 answer
638 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 ...
callum202's user avatar
0 votes
1 answer
325 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 ...
Celsy's user avatar
  • 1
0 votes
1 answer
228 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 ...
Praveen's user avatar
  • 15
0 votes
2 answers
144 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:...
Anurag's user avatar
  • 2,236
0 votes
1 answer
559 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"...
itsmebasti's user avatar
  • 6,477
0 votes
0 answers
173 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={...
Anyja's user avatar
  • 1
0 votes
1 answer
47 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" > <...
Tuấn Trần quốc's user avatar
0 votes
2 answers
830 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 ...
salesforce Developer's user avatar
1 vote
1 answer
1k 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 ...
Finnster's user avatar
1 vote
0 answers
330 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 ...
hellking's user avatar
0 votes
1 answer
1k 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 ...
Kamal's user avatar
  • 3
-1 votes
1 answer
405 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, ...
Rahul Allada's user avatar
0 votes
1 answer
142 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 ...
Sean's user avatar
  • 51
0 votes
1 answer
261 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 ...
mackmama's user avatar
  • 709
0 votes
1 answer
522 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. ...
mackmama's user avatar
  • 709
0 votes
2 answers
2k 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 ...
mackmama's user avatar
  • 709
0 votes
1 answer
265 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 ...
Alexander Folkerts's user avatar
0 votes
1 answer
207 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 ...
Chris's user avatar
  • 1
0 votes
1 answer
2k 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 ...
user126869's user avatar
0 votes
3 answers
1k 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 ...
Jeff Callahan's user avatar
2 votes
1 answer
1k 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 ...
Hiroki Yuda's user avatar
0 votes
1 answer
295 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 ...
preethi's user avatar
1 vote
0 answers
965 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 ...
Jeff Callahan's user avatar
0 votes
1 answer
262 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 ...
Travis's user avatar
  • 352
0 votes
1 answer
947 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 ...
sfdcdev's user avatar
  • 389
0 votes
1 answer
584 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 ...
Ruturaj Chothe's user avatar
0 votes
0 answers
716 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 ...
Nagendra Singh's user avatar
1 vote
0 answers
231 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 ...
Ben Felda's user avatar
  • 111
0 votes
2 answers
692 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-...
Keith C's user avatar
  • 136k
5 votes
1 answer
1k 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 ...
Keith C's user avatar
  • 136k
0 votes
0 answers
245 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 ...
anji reddy's user avatar
0 votes
1 answer
1k 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'...
Aditya Sahu's user avatar
0 votes
1 answer
71 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 ...
Ketonal's user avatar
0 votes
1 answer
56 views

How to reset page on cancel button using RecordEditForm in salesforce aura components

Cancel button is not working while using recordeditform
sandhya 's user avatar
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 ...
Phuc's user avatar
  • 125
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}&...
Luke Bray's user avatar
  • 506
0 votes
0 answers
24 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 ...
sfdcOwl's user avatar
  • 45
0 votes
0 answers
37 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 ...
Suneel Chandrasekhar's user avatar
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=&...
Alex's user avatar
  • 158
0 votes
0 answers
238 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 ...
Daniel Quijada's user avatar
0 votes
1 answer
5k 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 ...
Rajdeep Baghel's user avatar
1 vote
1 answer
4k 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 ...
Steven Hodge's user avatar
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="...
Hariprasath's user avatar
0 votes
1 answer
399 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"> <...
Raphael_SF's user avatar
0 votes
2 answers
2k 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 ...
Indresh Bhargav's user avatar

1
2 3 4 5