Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [lightning-recordviewform]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
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 ...
user avatar
0 votes
0 answers
33 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 ...
user avatar
1 vote
0 answers
37 views

Lightning record view form suddenly stopped working from past 2 days [closed]

We have made one LWC in which we are using lighting record view form to display the details of the records. Earlier, it was working fine, but from past two days, whenever we are opening the component, ...
user avatar
  • 11
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 ...
user avatar
0 votes
0 answers
20 views

Adjust Field Alignment on recordViewForm

In our Community I want the Case Description field displayed at the top of the Case Detail for reference. Also once a case has been submitted I do not want Customers to be able to Edit the ...
user avatar
2 votes
1 answer
315 views

Iterating lightning-output-fields inside lightning-record-view-form only shows last field

I need to display a small number of fields, with the list being generated dynamically: <lightning-record-view-form if:false={editMode} record-id={recordId} object-api-name={objectApiName}> <...
user avatar
  • 10.9k
0 votes
2 answers
30 views

Capture record update via LEX user interface inside custom Aura Component

I have a custom component used within the Utility Bar reflecting the context record field values (See below): <aura:component description="EC_RelatedTo" implements="force:...
user avatar
0 votes
0 answers
69 views

Unable to set values on lightning-record-view-form

HTML TEMPLATE <template> <lightning-card title="Custom Search Functionality in LWC" icon-name="standard:account"> <div if:true={errorMsg} style="...
user avatar
0 votes
1 answer
323 views

Record-view-form doesn't support Time data type field to be displayed

According to documentation of lightning-output-field which is used in lighting-record-view Time is not Support Record Type. So if we want to display time field in lightning-record-view we can't. Do we ...
user avatar
  • 3,309
0 votes
0 answers
504 views

LWC Lightning-Record-View-form behavior on Lookup Fields (Display Name Vs ID hyperlinks)

I'm using lightning Record view form in LWC to display OwnerID of account. Some users are seeing hyperlink with Owner Name and some users are seeing hyperlink with SalesforceID. What could be the ...
user avatar
0 votes
1 answer
22 views

recordViewForm not displaying when attribute set in helper [duplicate]

When trying to display a record's field via lightning:recordViewForm, I am successful when I set the recordId attribute (ProjId) directly by defining a default value. However, when I assign ProjId in ...
user avatar
0 votes
0 answers
186 views

Unable to get property 'apiName' of undefined or null reference

I'm currently struggling with a strange error message in my Aura component, any kind of pointers or further debugging ideas would be most welcome! Thanks in advance! So the setup is: A custom object (...
user avatar
  • 38
3 votes
2 answers
5k views

Get labels and values of each field in lightning-record-view-form in LWC

I want to get field-name(label) and field-value of each field for validation as shown below. Is there any way to do it in LWC? sampleRecordViewForm.html <template> <lightning-record-...
user avatar
  • 151
2 votes
3 answers
2k views

Force update lightning-record-view-form

I have some fields from a record i display via lightning-record-view-form. I have an Apex action invoked imperatively e.g. myMethod().then().catch(). That action changes the field on my object. When ...
user avatar
  • 1,576
3 votes
1 answer
2k views

lightning:recordViewForm add spinner while loading data

I'm using lightning:recordViewForm and I realized that there is a bit delay. I was reading a lot here and in google but can't find any solution to this. I thought on adding a spinner on my component ...
user avatar
0 votes
0 answers
73 views

Show recordViewForm without extra div in markup

I'd like to display a related list of records in a simple table and need to create it as a custom component due to very strict style guidelines. I'm attempting to do this by using force:...
user avatar
0 votes
1 answer
362 views

SLDS grid ugly rendering with lightning:outputField

I am trying to display a record using lightning:recordviewform and using slds grid inside it to format columns. It looks like below when I am using slds-size_3_of_12 As you can see, there is still ...
user avatar
  • 63
1 vote
1 answer
210 views

lightning:recordViewForm will not load Product2 object on mobile

I have a simple Product2 details component. Component <aura:component implements="lightning:isUrlAddressable, flexipage:availableForAllPageTypes"> <aura:handler name="init" value="{!...
user avatar
  • 8,223
0 votes
2 answers
6k views

Use lightning:recordViewForm to show related record data

I am using lightning:recordViewForm with lightning:outputField in my lightning component. Regular fields are shown correctly, but when I am trying to show a field of a related parent record nothing ...
user avatar
  • 4,749
0 votes
1 answer
641 views

Use 2 different lightning:recordViewForm inside one SLDS Page Header

I want to show data from 2 different objects inside an SLDS Page Header For the page header I use <ul class="slds-page-header__detail-row"> For the data - I use lightning:recordViewForm If I ...
user avatar
  • 4,749
1 vote
0 answers
135 views

lightning:recordViewForm throwing error if update records fetched from server

I have a use case in which I have to display Opportunity fields(stored in custom metadata type) using lightning:recordViewForm. On initial load I do API call which returns Opportunity Id and some ...
user avatar
0 votes
3 answers
3k views

Uncaught Action failed error with lightning:recordViewForm

I have a use case in which I need to the display the address fields(all custom fields with the same API name in both objects) of lead/ Account. Let's say if I'm on Enquiry object(custom object) then ...
user avatar
  • 106
0 votes
2 answers
1k views

Cannot Read Property 'getList' of Null Exception

I have a component which iterates over a list of records and in turn calls a child component for each record returned. This works fine. I also have a lightning:slider in a seperate component which ...
user avatar
  • 616
4 votes
1 answer
2k views

lightning:recordViewForm and force:recordData refresh issues

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 ...
user avatar
7 votes
1 answer
1k 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 ...
user avatar
0 votes
1 answer
409 views

Publicly available <lightning:recordViewForm with field of type Lookup does not provide options

I have a <lightning:recordViewForm in a custom lightning component with a <lightning:outputField which is mapped to a field of type Lookup(CustomObject__c) The lightning component is on a ...
user avatar
  • 8,223
2 votes
3 answers
5k views

<lightning:recordViewForm will not display

I have a <lightning:recordViewForm in a custom lightning component. When I hardcode the recordId attribute it works, but when I pass an attribute in it fails without any error messages in either ...
user avatar
  • 8,223
0 votes
0 answers
328 views

Is recordViewForm supported ONLY with hasrecordId? [duplicate]

I am using recordViewForm (in API version 43) because I have to use lightning:outputField tags inside for its automated formatting and features like mailTo, tel:, map on address, etc. (and I am ...
user avatar
  • 43
1 vote
0 answers
102 views

How can lightning:inputField support human inputs of "10k" , how to make it support locale and how to make it consistent to other inputs?

I have a the following markup <aura:iteration items="{!v.Items}" var="item"> <lightning:recordEditForm recordId="{!item.Id}" objectApiName="OrderItem"> ...
user avatar
  • 33.6k
3 votes
2 answers
1k views

Can <lightning:recordViewForm> be used without <lightning:outputField>

I am creating my own custom Organization__c record page for a community. I am using lightning:recordViewForm and lightning:outputField for all the fields that I want to display, but, I have a few ...
user avatar
  • 4,749
5 votes
1 answer
2k views

What is the use of objectApiName in lightning:recordViewForm

While exploring Lightning Data Service, I came across another option to load record without apex/soql in Lightning components using lightning:recordViewForm tag, which works in conjunction with ...
user avatar
  • 5,517
12 votes
2 answers
1k views

Is it possible to use the new v41.0 lightning:outputField in huge numbers inside tables? Is it possible to extend it?

Today I'm giving the new v41.0 <lightning:outputField> a try. I want to use it massively inside an <aura:iteration> to build a data-table and want to accomplish the following: ...
user avatar
  • 33.6k