You need to sign in to do that
Don't have an account?
Priya Subbaraman
I need help to display the columns with Labels on Top. I am using lightning:recordviewform to display.
I have written this to code to display the columns from Implementation__c object. I am using lightning:recordviewform to display. It displays like this :
Can anyone help me to display the Labels on the top. Ideally, I would want the labels to be displayed in one row and the values underneath it.
Here is the copy of my code.
<!-- Add this component to an Implementations record Lightning page -->
<aura:component implements="flexipage:availableForRecordHome,force:hasRecordId" access="global">
<lightning:recordViewForm recordId="{!v.recordId} objectApiName="Implementation__c" >
<div class="slds-box slds-theme_default">
<lightning:messages />
<lightning:outputField fieldName="Account__c" />
<lightning:outputField fieldName="Partner__c" />
<lightning:outputField fieldName="Risk__c" />
<lightning:outputField fieldName="Stage__c" />
<lightning:outputField fieldName="Status__c" />
<lightning:outputField fieldName="Budgeted__c" />
<lightning:outputField fieldName="Billed__c" />
<lightning:outputField fieldName="Forecast_Margin__c" />
<lightning:outputField fieldName="Current_Margin__c" />
</div>
</lightning:recordViewForm>
</aura:component>
Thannk you for any help!
Can anyone help me to display the Labels on the top. Ideally, I would want the labels to be displayed in one row and the values underneath it.
Here is the copy of my code.
<!-- Add this component to an Implementations record Lightning page -->
<aura:component implements="flexipage:availableForRecordHome,force:hasRecordId" access="global">
<lightning:recordViewForm recordId="{!v.recordId} objectApiName="Implementation__c" >
<div class="slds-box slds-theme_default">
<lightning:messages />
<lightning:outputField fieldName="Account__c" />
<lightning:outputField fieldName="Partner__c" />
<lightning:outputField fieldName="Risk__c" />
<lightning:outputField fieldName="Stage__c" />
<lightning:outputField fieldName="Status__c" />
<lightning:outputField fieldName="Budgeted__c" />
<lightning:outputField fieldName="Billed__c" />
<lightning:outputField fieldName="Forecast_Margin__c" />
<lightning:outputField fieldName="Current_Margin__c" />
</div>
</lightning:recordViewForm>
</aura:component>
Thannk you for any help!