Questions tagged [lightning-recordeditform]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
14 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
19 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
41 views

Lightning-record-edit-form edit functionality not working

I'm creating a record in lightning record-edit -form then in the handle success of my parent component i'm calling a child component to edit some fields of that record and passing the recordId of the ...
0
votes
1answer
49 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
53 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
6 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
42 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
18 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
365 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
93 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
63 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
17 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
179 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'...
2
votes
1answer
126 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
35 views

The Requested resource does not exist error in Lightning record edit form

I'm getting The requested resource does not exist error while trying to create record using lightning record edit form . Have checked multiple times the profile has access to create & read the ...
0
votes
0answers
65 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
41 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
34 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
37 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
84 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
287 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
2k 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
56 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
69 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
190 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> ...
2
votes
3answers
535 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
361 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
51 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
71 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
1k 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
347 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
118 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 ...
0
votes
1answer
180 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
403 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
26 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
33 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
336 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
217 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={...
1
vote
1answer
130 views

Determine field type lightning-record-edit-form

On a lightning-record-edit-form page, how you determine the field type(text, lookup, picklist)? Thank you, P
0
votes
0answers
14 views

How to update only the lightning-edit-record object for which fields got changed when there are multiple lightning-edit-record forms

I have a form which has multiple lightning-edit-record form. For example, my form looks like: <lightning-record-edit-form object-api-name="Machine_Configuration__c"> <...
0
votes
0answers
34 views

Lightning-Record-Edit-form - Triggering Save of Record

I have a Lightning-Record-Edit-Form and do have this working when using a button that has the type="submit". I created a separate button that the user will click to open up a closed ...
0
votes
1answer
659 views

How to get a record's updated value using lightning-record-edit-form in LWC?

I use the lightning-record-edit-form for my custom lead conversion and override the save button. However I cannot find a good documentation to get the updated values of the lead. The lead needs to be ...
1
vote
1answer
641 views

Submit Button Not Working When Placed Outside Lightning-Record-Edit-Form Tag in Salesforce LWC

In my sample LWC page, I replicated the standard Edit button in Case object, then placed it inside a modal. Record update working so far, but I notice that footer containing Cancel and Save buttons ...
0
votes
0answers
21 views

RecordEditForm with iteration shows no fields on rerender

I have a wizard with a few steps. On the first screen I have a lightning:recordEditForm that uses aura:iteration to display a set of fields retrieved in component's onInit method from metadata. All ...
0
votes
1answer
279 views

recordEditForm : event.preventDefault() not submitting the pre populated values in the form

I have a custom aura component for record creation. The onload() function calls the apex method to load values in the form. When I try to submit the form by using onsubmit(), the new record is created ...
0
votes
1answer
103 views

Both inputField and outputField inside lightning:recordEditForm

I am trying to enter some value inside Description field, and I want to get the same text inside lightning:outputField as below: <lightning:recordEditForm aura:id="recordEditForm" ...
1
vote
2answers
469 views

Editing fields before submitting for multiple lightning:recordEditForm

I am trying to create a page so that I can create multiple sObject records in a single button click, with the help of lightning:recordEditForm component. I checked the below link, and looks like this ...
0
votes
0answers
124 views

LWC Record View Form: Error: Field [xyz__c] was not found

Although I have access to the field and the field is in the layout, I am getting error in Developer Console (Chrome). Error: Field [xyz__c] was not found Code Snippet below: <lightning-record-...
1
vote
1answer
1k views

Why is <lightning-input-field> not setting value of checkboxes in LWC?

I am getting data in my LWC from a wrapper class. In that data, I get object API name, field API name and value present in the field in the form of Strings. I iterate over the data from the wrapper ...