Questions tagged [lightning-recordeditform]
The lightning-recordeditform tag has no usage guidance.
223
questions
0
votes
0
answers
27
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=&...
-1
votes
0
answers
22
views
Display multiple records dynamically in a Lightning Record Edit Form [closed]
I have a requirement for displaying multiple records dynamically in a Lightning Record Edit Form. I am passing in a collection of records from a Flow into a LWC which displays the Lightning Record ...
0
votes
1
answer
45
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
0
answers
24
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
38
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
21
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
23
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
109
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
32
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
61
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
328
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
192
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
193
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
65
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
177
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
143
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
0
answers
28
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
180
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&...
0
votes
0
answers
41
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 ...
0
votes
0
answers
149
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:
<...
0
votes
0
answers
27
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 ...
2
votes
2
answers
517
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 & ...
1
vote
2
answers
1k
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
371
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 ...
0
votes
0
answers
23
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 ...
0
votes
0
answers
82
views
How to show picklist values while creating a dynamic component using $A.createComponents method
I have built a component that will dynamically create a record edit form & record view form. The problem is with the record edit form, for the picklist field the values are missing as shown in the ...
0
votes
0
answers
1k
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 ...
0
votes
1
answer
88
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
0
answers
39
views
How to retrieve and pass lookup record id
I'm currently overriding the edit button with the lightning record edit component for a custom object named 'Schedule' which has a lookup relationship with the lead record. My requirement is to get ...
0
votes
2
answers
264
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 ...
1
vote
1
answer
691
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
168
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 ...
0
votes
0
answers
54
views
Is that possible to save the data as draft in Lightning record edit from without filled all the required input field in lwc?
My goal :
User does not need to fills all the required input field for save as draft.
1
vote
1
answer
43
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 ...
2
votes
1
answer
38
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
231
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
359
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 ...
0
votes
0
answers
27
views
lightning:recordEditForm does not updating, just inserting
I used lightning:recordEditForm in my aura component file
and save button function is okay but I want update an already existing record..
When I click the 'save' button in edit page,
a new record is ...
1
vote
2
answers
2k
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,...
0
votes
1
answer
48
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=...
0
votes
0
answers
36
views
How Can I fetch input values from a <lightning-record-form> on custom button click and store in an array
This is what I did so far:
HTML:
JS:
nextHandler(){
const textInputs = this.template.querySelectorAll('lightning-record-form');
this.nextfields = true;
this.hideNextPrev =...
0
votes
1
answer
241
views
Is it possible to use lightning:inputField with fieldName RecordTypeId on lightning:recordEditForm?
Is it possible to use lightning:inputField with RecordTypeId as fieldName. I want to create form that will dynamically change his own fields according to selected record type?
I wonder that I need to ...
0
votes
1
answer
87
views
How can I add a new field before writing the data received from record-edit-form?
I have an LWC component and I'm trying to add a new record using record-edit-form:
<lightning-record-edit-form
object-api-name={objectApiNameExpenseCard}
...
0
votes
0
answers
288
views
LWC record-edit-form wont work with rich text area field
I am trying to update a rich text area field inside record-edit-form in lwc but it wont update once clicked inside the rich-text-area field placeholder.
Scenario is: This UI is for an Edit Page. On ...
0
votes
0
answers
19
views
Increase height of textarea field inside recordeditform
How can we increase the height of the textarea field in the recordeditform.
Similar to below functionality but should be inside recordeditform
Apply a custom height and width for lightning:textarea
0
votes
1
answer
72
views
Send form details as an email
I'm writing an LWC record edir form that is based on a contact record. and here is my code.
<template>
<lightning-record-edit-form record-id={recordId} object-api-name="Contact"
...
0
votes
0
answers
253
views
aura:if prevents 'onload' of lightning recordEditform to be called
I create a Lightning component which loads an Opportunity record with recordEditForm. In this component, I want to display areas conditionnally. I am using aura:if/aura:set tags sequence for that. The ...
0
votes
2
answers
4k
views
How to show a custom validation message on a field in Lightning Record Edit form in LWC?
HTML :
<lightning-record-edit-form object-api-name="Account" onsuccess={handleSuccess}>
<lightning-messages></lightning-messages>
<div class="slds-m-...
0
votes
2
answers
755
views
How do I align an element in lightning-record-edit-form?
I have a field on the form and I want to align the checkbox and the name on the same line. How do I do this? By default, it is located like this:
<template>
<div if:true={showStepOne}...
0
votes
1
answer
40
views
Why isn't the value passed to another component?
I have several components. I pass the value from the "StepOne" component to the "stepTwo" component and this is what I get:
and I want to get this:
Here is my code:
//stepOne. ...