Questions tagged [lightning-record-form]

A lightning:recordForm component enables you to quickly create forms to add, view, or update a record. Using this component to create record forms is easier than building forms manually with lightning:recordEditForm and lightning:recordViewForm.

13 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
1answer
768 views

Refreshing issues in lightning:recordViewForm

I'm having TestObject as parent object and New Custom Object having M-D relationship to it. TestObject having Min and Max Rollup summary fields which will rollup number field in child object. I was ...
4
votes
0answers
568 views

Detecting Data Changes with lightning:recordform

how can one bind onchange event handlers to the fields of the lightning:recordform component? component.cmp <aura:attribute name="fieldsArray" type="String[]" default="['Subject','...
3
votes
1answer
2k views

Lightning:recordForm onload() method to prepopulate fields on record creation

I am using lightning:recordForm to create a record creation form. I am trying to pre-populate some fields. My component: <aura:component description="replaceDuplicatesModal" controller="...
2
votes
0answers
57 views

LWC: Master-detail field default value in Lightning-record-form

Is there a way to assign default value for record's master-detail field on LWC component "lightning-record-form" ?
1
vote
0answers
118 views

Lightning RecordEditForm - getting error [object object] for few users

Problem: Many users are able to see a form but few users are not able to see the form and getting error [object object]. I am using lightning:recordEditForm as below in lightning record page: <...
1
vote
0answers
19 views

recordForm error Handling

I have a recordForm like this:- <aura:attribute name="KeyDealInfoSectionfieldlist" type="String[]" default="field1__c,field2__c"/> <aura:attribute name="objectName" type="String" ...
1
vote
0answers
135 views

LWC record form for related fields

MY LWC looks like below import { LightningElement,api } from 'lwc'; import ENGAGE_SUBJECT_FIELD from '@salesforce/schema/Engagement__c.Subject__c'; import ENGAGE_INDUSTRY_GROUP_FIELD from '@...
1
vote
0answers
34 views

Lightning:recordForm is not displaying fields as mandatory but the fields are marked as mandatory on Pagelayout

I have multiple recordTypes and multiple pagelayouts. For each record type there are specific fields marked as mandatory as per the recordType on the pagelayout but when i am using lightning:...
1
vote
0answers
117 views

Lightning:recordForm onSuccess event not returning response

I'm trying to get the response in the onSuccess callback for a lightning:recordForm save event, but it's coming up as undefined. The callback is being called, I can log to the console, but both of the ...
1
vote
0answers
186 views

lightning:recordForm - New Record doesn't render Compact

I have a lightning recordForm defined as: <lightning:recordForm objectApiName="Account" layoutType="Compact" columns="3" ...
1
vote
1answer
158 views

LightingInput for Address not setting default Country Code

I am using the new Lightning:recordForm with a list of fields. <lightning:recordForm objectApiName="Account" recordTypeId ="{!v.rtTypeId}" fields="{!v.acctFields}" ...
0
votes
2answers
91 views

LWC Composition for Custom Layout inside a lightning-record-form

I have a SObject with multiple display layouts. Now, I want a way to display a particular layout in my lightning-record-form with different lightning-input-field. I don't wanna attach all the fields ...
0
votes
1answer
115 views

onLoad not been called in lightning:recordEditForm

I am having input fields inside my recordEditForm. When i try to run the component it's not calling the onload event handler. I don't want to put any lightning:inputField into it. Because I don't need ...