Questions tagged [lightning-recordeditform]

Filter by
Sorted by
Tagged with
0 votes
1 answer
37 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, ...
  • 329
0 votes
1 answer
17 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 ...
  • 49
0 votes
1 answer
39 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 ...
  • 563
0 votes
1 answer
57 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. ...
  • 563
0 votes
2 answers
193 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 ...
  • 563
0 votes
0 answers
28 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 ...
  • 1
0 votes
1 answer
46 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
47 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 ...
  • 1
0 votes
1 answer
236 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
139 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 ...
1 vote
0 answers
147 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
70 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
211 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
51 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 ...
  • 326
0 votes
1 answer
314 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 ...
  • 389
0 votes
1 answer
115 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
254 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
140 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 ...
  • 111
0 votes
2 answers
188 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-...
  • 133k
5 votes
1 answer
540 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 ...
  • 133k
0 votes
0 answers
66 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
415 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
0 answers
370 views

lightning-input-field label text alignment

I am using lightning-record-edit-form and I want all labels in lightning-input-field for record fields to be centered. I don't also want to hide all these labels, override them- like <label for=&...
0 votes
1 answer
32 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
0 answers
73 views

how to display custom address field of custom object using aura component

I have followed the steps as per new release about custom address field and created a address data type field in my custom object and then using <lightning:inputField fieldName="...
0 votes
0 answers
105 views

In LWC lightning:recordEditForm how to know the clicked button data-attribute

LWC lightning:recordEditForm has many buttons on-submit event need to know which button has been pressed. LWC component HTML <lightning:recordEditForm recordId=&...
  • 11
0 votes
0 answers
212 views

Scrolling issue with lightning-record-edit-form and input-field (picklist) drop menu

I came across this GitHub issue https://github.com/salesforce-ux/design-system/issues/587 where it is discussed about the scrolling issues with using lightning-combobox inside a modal. The resolution ...
  • 5,768
0 votes
1 answer
43 views

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

Cancel button is not working while using recordeditform
0 votes
0 answers
150 views

How do I implement a CRUD Operation in Custom UI?

<lightning-record-edit-form record-id="b6B8A000000LBp1QAW" object-api-name="CBProgram__c"> <lightning-layout multiple-rows> <lightning-layout-item size=&...
0 votes
1 answer
1k 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 ...
  • 125
0 votes
0 answers
228 views

Is it possible to make a custom lightning-record-form or something similar to it?

I have a lwc with 2 sections using lightning-record-form, but each section has its own 'Cancel' and 'Save' button (because of lightning-record-form). I'm trying to make just one, like the desired ...
0 votes
1 answer
884 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}&...
  • 466
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 ...
  • 35
0 votes
0 answers
31 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
1k 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=&...
  • 133
0 votes
0 answers
154 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
3k 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
2k 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
1k 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
222 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
1 answer
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
809 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-...
  • 5
0 votes
1 answer
894 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&...
  • 605
0 votes
0 answers
1k views

How to pass lightning-input-address field value to actual address field in LWC record edit form save?

I have created lightning-record-edit form component to create a new record. I have added code to display Input address field in the component. Below is the code that I have used: LWC HTML: <...
  • 79
2 votes
2 answers
1k views

Component is not refresh during 2nd attempt after clicking on new button

I have overridden Standard New button on lead object with Aura Component and this Aura calls LWC which contains record edit form to create new lead record. I have 2 record types Record Type 1 & ...
  • 79
1 vote
2 answers
7k views

How to display 2 columns in LWC accordion section?

I have created a record edit form and I am passing fields dynamically from field sets. Below is the HTML code where it display only 1 field at a time. I want to display 2 columns instead of one. LWC ...
1 vote
0 answers
3k views

Dynamically building a record edit form from fieldset

I am working on creating a lwc that builds a record edit for dynamically for case closure, to replace the classic functionality of the Case Close Page. I have a simple APEX class that I can pass a ...
  • 153
0 votes
1 answer
370 views

Use id in aura:iteration for recordEditForm

I have aura:iteration which goes through my custom wrapper class (which contains List of sObjects), and show recordEditFrom for all of them. My wrapper does not have an Id field. However, it has a key ...
0 votes
2 answers
767 views

How to hide controlling field and how to pass values of controlling,dependent picklist fields to save record using Lightning record edit form - lwc

I have created a form using lightning record edit form which basically has few case object standard fields and a controlling and a dependent field. I was able to default the controlling field value in ...
  • 45
1 vote
1 answer
2k views

lightning-record-edit-form not rendering anything when running via another profile

I have created a flow. Where I have a profile check that of profile is "Retention" then show an LWC screen. <template> <lightning-record-edit-form object-api-name="...

1
2 3 4 5