Questions tagged [lightning-recordviewform]
The lightning-recordviewform tag has no usage guidance.
35
questions
0
votes
1
answer
26
views
General question about LWC record tags, why don't they look like the Lighting UI?
Here's a general question about the Lightning form tags lightning-record-view-form and lightning-record-edit-form. Why don't they look like Lighting Detail pages?
Lightning Detail page have labels to ...
-1
votes
1
answer
23
views
recordViewForm not pre-populating input fields for certain profiles in aura
I have an aura component with a recordViewForm that displays multiple fields from the Account object . These input fields are supposed to be pre-populated but are not displaying for a certain profile ...
1
vote
1
answer
39
views
textarea fields from lightning-record-view-form overflow when in slds-popover
I've got a popover that displays record with long or rich text area fields. Fine in most places except when it's in a popover (that's over ligtning-datatable).
When it has long sentences it wouldn't ...
0
votes
1
answer
252
views
How to adjust the styling on the Lightning record view form?
I am trying to create custom Highlights panel using LWC, to show in the flow.
Able to fetch the details, but the label names are showing in vertical form instead of row.(shown below)
I want to show ...
0
votes
1
answer
856
views
Show related fields in Record View Form
I have a custom_object__c which has a lookup to Contact (Contact__c), I'm trying to pull the phone number on the contact and display it on my custom_object__c flexipage:
import { LightningElement, api ...
0
votes
1
answer
352
views
Lightning-edit-form submit only after custom code execution
I am creating LWC which will have both <lightning-record-edit-form> and <lightning-record-view-form> elements. I am toggling between these elements to edit and display the record.
My code ...
0
votes
1
answer
437
views
In a Lightning Web Component (LWC), is there a way for expressions to reference the data in the record of a lightning-record-view-form
lightning-record-view-form is given a object type and a recordId had retrieves data for that type for the record with the Id. Then tags like lightning-output-field can reference field values. What I'...
0
votes
0
answers
199
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 ...
1
vote
0
answers
146
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, ...
2
votes
1
answer
1k
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}>
<...
0
votes
2
answers
44
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:...
0
votes
0
answers
220
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="...
0
votes
1
answer
557
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 ...
0
votes
0
answers
782
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 ...
0
votes
1
answer
23
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 ...
0
votes
0
answers
265
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 (...
3
votes
2
answers
7k
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-...
2
votes
3
answers
4k
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 ...
3
votes
1
answer
3k
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 ...
0
votes
0
answers
107
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:...
0
votes
1
answer
472
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 ...
1
vote
1
answer
222
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="{!...
0
votes
2
answers
7k
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 ...
0
votes
1
answer
708
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 ...
1
vote
0
answers
137
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 ...
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 ...
0
votes
2
answers
2k
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 ...
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 ...
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 ...
0
votes
1
answer
436
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 ...
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 ...
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 ...
3
votes
2
answers
2k
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 ...
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 ...
10
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:
...