Questions tagged [lightning-recordeditform]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
33 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
0answers
33 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
1answer
33 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
0answers
26 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
2answers
55 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
1answer
193 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
0answers
15 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
0answers
29 views
1
vote
1answer
38 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
1answer
26 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
1answer
99 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
1answer
82 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
2answers
863 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
1answer
27 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
0answers
21 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
1answer
59 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
0answers
172 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
0answers
13 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
1answer
43 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
0answers
97 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
2answers
2k 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
2answers
339 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
1answer
38 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. ...
1
vote
1answer
140 views

Validation Rule error not showing in lwc near field even though error location specified

I have a validation rule error that fires when Defect__c has a value and DefectReason__c is blank. In the validation rule, I have set the error location to DefectReason__c. The error message shows ...
0
votes
0answers
19 views

Get a list of record values from lightning form

I need your help for get a dynamic values from a dynamic form. What I mean with "dynamic form"? Well, I have the next one code for create 1 or N records <aura:attribute name="...
0
votes
1answer
479 views

LWC:Getting error while setting Custom Validity Error Messages in LWC form ' [Cannot read property 'setCustomValidity' of undefined]'

I want to check if field is empty before moving to other part of form divided by div. on a button(not submit) have tried custom validation as given in documentation lightning-input-documentation but i'...
3
votes
1answer
329 views

Error: Unknown public property "name" of element <LIGHTNING-INPUT-FIELD>. This is likely a typo on the corresponding attribute "name"

I am getting this issue in the console: Error: Unknown public property "name" of element . This is likely a typo on the corresponding attribute "name". However, this component was ...
0
votes
0answers
144 views

Deserialize JSON to Object given an JSON String and an sObjectApiName

I created a generic LWC using a lightning-record-edit-form where user specifies sObjectName and fields to display as parameters and the edit form will display those. <lightning-record-edit-form ...
0
votes
1answer
110 views

Is it Possible to Apply the panelOnDestroyCallback Callback Parameter to the force:editRecord Event by Updating the $A Namespace?

Is it possible to update a copy of the $A namespace object to handle callbacks where they are not otherwise handled? For example, the force:createRecord event has the panelOnDestroyCallback callback ...
0
votes
0answers
57 views

How can i prevent my lightning record edit form from submitting on "ENTER" key press?

Lightning Record edit form Submits when "ENTER" key is pressed. I want to remove this behavior. How can i prevent my lightning record edit form from submitting on "ENTER" key press?...
1
vote
1answer
86 views

getParam("recordUI") on recordEditForm onload event returns 'undefined'

In a Tabs component, I am using a Record Detail component along with custom components in the Opportunity object. The goal of the custom pages/components is to display fields spread in different tabs ...
0
votes
0answers
207 views

How can we add onblur event for lightning:inputField

I need to add onblur event for lightning:inputField. Right now as per the documentation (https://developer.salesforce.com/docs/component-library/bundle/lightning:inputField) I dont see a direct by ...
0
votes
1answer
386 views

Record Form and Record Edit form showing Id on the output field (lookup) instead of record name

I am using lightning-record-form and lightning-record-edit-form to display some records where I have several lookup-fields displayed, the lookup fields when rendered as output, should show the names ...
0
votes
2answers
4k views

lightning-input-field reportValidity and stop execution

I have an lwc form that consists of a lightning-record-edit-form and some lightning-input-fields I have to override the submit button with apex as I have to perform some custom logic. There are some ...
0
votes
0answers
108 views

Dependent picklist values are not pre-populated in record-edit-form

I am using a set of dependent picklists in a lightning-record-edit-form. When the form is loaded with a recordId set, the record has all the fields filled, only the controlling picklist values are ...
0
votes
1answer
227 views

onsubmit event requirement in lwc

I have a requirement where I need to submit a feedback I am having two fields: NAME, FEEDBACK I am using the record edit form in LWC and there are other fields for feedback which are lookup fields of ...
0
votes
1answer
456 views

LWC lightning-record-edit-form lookup values are null

I have an LWC which contains multiple lightning-record-edit-forms, when I save one (say the Account) I want to populate the AccountId on the lightning-record-edit-form for a Contact: <template> ...
3
votes
3answers
768 views

LWC lightning-record-form Time field edit

I have a lightning-record-form for a custom object, which I show and allow to edit with the basic element's features: <lightning-record-form record-id={opId} object-api-name="Operation__c"...
0
votes
2answers
744 views

lightning-record-edit-form with lightning-input-address show-address-lookup to true to create an Address record

I am creating a custom LWC component to create a new Address record. I've used the lightning-record-edit-form like below, <template> <lightning-record-edit-form record-id={currenRecordId} ...
0
votes
1answer
143 views

Resetting lightning:recordEditForm not working -AURA

This is my controller : clear : function(component,event, helper) { component.find('field1').forEach(function(f) { f.reset(); }); component.find('field2').forEach(function(f) { f....
1
vote
0answers
103 views

API NAME ACCOUNT IS INVALID, DID YOU MEAN "USER?" -- Lightning recordEditForm --Aura

I am simply pasting the code from this doc : <lightning:recordEditForm recordId="003XXXXXXXXXXXXXXX" objectApiName="Account"> <lightning:messages /> <...
5
votes
2answers
3k views

Override the label and helptext for a lightning-input-field

I have a lightning-record-edit-form with lightning-input-field components inside. I don't want to display the standard field label because the 40 character constraint is too much. Instead, I've ...
1
vote
1answer
600 views

The success event returned from `lightning-record-edit-form` is missing fields that I have in my component

I have a custom lightning-record-edit-form component that looks like this: <lightning-record-edit-form record-id={id} record-type-id={recordTypeId} object-api-name="Account"...
0
votes
1answer
287 views

LWC render nested component within lightning-record-edit-form

I am working on building a LWC that componentizes lightning-record-edit-form, but the form cannot evaluate the lightning-input-field when the fields are nested within another component. The basic ...
1
vote
1answer
393 views

lightning:input type="time" displays millisecond value when editing object

I am building a lightning component to create/edit custom objects. I've been able to do this with force:inputFields in the past but unfortunately ran into a component error that the new recommended ...
0
votes
1answer
785 views

How to display non-editable lookup in LWC lightning-record-edit

I am building a component using a lightning-record-edit-form, which may either display an existing record for edit, or a new record for create. The component will set the record-id appropriately. ...
0
votes
2answers
36 views

Ligtning:recordEditForm onload , onSubmit ,onSucess action values

I have a doubt .During onLoad action ,are the record values the old and during the onSucess the record values are updated ? I want to send both the old and updated values of the record updated using ...
0
votes
0answers
47 views

Lightning:recordEditForm error

I have used Lightning:recordEditForm to edit a preexisting record'scertain field. But it shows an error "Required fields are missing: [Name, StageName, CloseDate]". I believe this should ...
0
votes
0answers
607 views

Editing a record using lwc record-edit-form does not submit values

I am new to lwc and trying to create a lwc for updating contact record fields. I am using the lightning-record-edit-form component. But, when I try to submit the form nothing happens, no errors and ...
0
votes
1answer
703 views

How to submit 1 lightning-record-edit-form and run onsubmit method param?

when I use the below code to submit each form, onsubmit={handleSubmit} doesnt run. Why? <lightning-record-edit-form key={item.id} object-api-name="professionalExperience__c" onsubmit={...