Questions tagged [lightning-recordeditform]

Filter by
Sorted by
Tagged with
0 votes
1 answer
31 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
104 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 ...
  • 387
0 votes
1 answer
33 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
78 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
99 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
73 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-...
  • 131k
5 votes
1 answer
272 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 ...
  • 131k
0 votes
0 answers
30 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
241 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
253 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
25 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
59 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
85 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
155 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,698
0 votes
1 answer
37 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
109 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
651 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 ...
  • 127
0 votes
0 answers
150 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
644 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
22 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 ...
  • 25
0 votes
0 answers
28 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
719 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=&...
  • 127
0 votes
0 answers
122 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
0 answers
271 views

LWC on page reload, radio button should retain its selected value

I am rendering picklist as radio button in record edit form and saving the data in object. But while reloading the page I want radio button to retain the selected value. by default radio group get ...
0 votes
1 answer
2k 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
169 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
886 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
721 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
0 answers
153 views

lightning:recordEditForm not rendering when user has read-only data-level security

I have a custom object that is a child of Opportunity so its data-level security is controlled by its parent (Opportunity) sharing settings. All of my user Profiles have Object-level permissions set ...
0 votes
1 answer
741 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
94 views

User Interface API returning original field label instead of overridden field label from Translation Workbench

We've overridden a Managed Package field's label (API Name: appnamespace__Units__c, label = Units) using Translation Workbench's Override option to Quantity. The updated field label shows up fine in a ...
  • 5,698
0 votes
0 answers
808 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: <...
  • 67
0 votes
0 answers
69 views

populate field while submitting lighting form

I am trying to populate few fields before I submit my lightning edit form. But I have a scenario like this question. How to submit a lightning:recordEditForm from a button that isn't nested? So ...
  • 327
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 & ...
  • 67
1 vote
2 answers
4k 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 ...
0 votes
1 answer
1k views

How to hide field in Lightning-record-form?

I'm using two lightning-record-form to display Case fields , but since the field Type isn't displayed in the 2nd recordForm , the field WaitingforStakeholder is grayed out because i'm using Type and ...
  • 21
0 votes
0 answers
82 views

Getting Restricted Picklist value while saving LDS fields from Apex

I need to set dmlOptions while inserting the records. So instead of using the record submit method, I have created my custom save method. Though the Case object gets created, I'm getting restricted ...
  • 515
1 vote
0 answers
2k 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 ...
  • 123
0 votes
1 answer
264 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
616 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
1k 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 vote
0 answers
514 views

Display lightning:recordEditForm in a modal

I'm having issues saving my new record using the code below. I'm trying to override the standard "New" function with a custom lightning:recordEditForm on a modal interface. The modal opens ...
1 vote
1 answer
106 views

Understanding LWC without APEX?

I made a post under the title a few days ago called "Conditional Rendering of a Form Based on Case Status LWC (if:true)" In that post I talk about how I am trying to set an attribute to the ...
  • 23
2 votes
1 answer
181 views

Can we show a Big Object with lightning-record-form in LWC?

I want to show my custom big object in LWC lightning-record-form ? Is it possible ? When i do this i get this error : Code for the form : <lightning-record-form record-id={selectedBigObject.Id}...
0 votes
1 answer
355 views

Date formatting issue in LDS lightning-record-edit-form

We have built LDS forms using lightning-record-edit-form, lightning-input-field tag is used for date which displays standard locale date format as per documentation. The problem is, it is always ...
1 vote
1 answer
580 views

Issue with lightning-record-edit-form event order of execution between Parent and multiple Child LWCs on Submit

I'm new to LWCs development. I'm having an issue understanding the order of execution for the lightning-record-edit-form component when a Parent lwc has multiple Child lwcs. Each Child component ...
1 vote
2 answers
4k views

Lightning Record edit from to make the Fields Read only based on the picklist value selected

I am trying to create a Lightning component to make the Fields as read only based on the picklist value selected I have custom Field(status) when ever user selects the value in the picklist as (New,...
  • 97
0 votes
1 answer
211 views

Why is the data of the "lightning-record-edit-form" field recorded if the value does not pass verification?

//html <template> <section role="dialog" tabindex="-1" aria-modal="true" class="slds-modal slds-fade-in-open"> <div class=...

1
2 3 4 5