You need to sign in to do that
Don't have an account?
display the name of field and value
HI All,
i need small help here. i need to present the label of the field not only its value as hyperlinked . here is the code i have and screen shots of how it looks.
the field is External Claim Number, currently the value is highlighted which is fine. however, i want the label of the field to come right above or before.
here is a screen shot to make it clear.

i need small help here. i need to present the label of the field not only its value as hyperlinked . here is the code i have and screen shots of how it looks.
<aura:component > <aura:attribute name="lead" type="Lead"/> <lightning:recordViewForm aura:id="viewForm" recordId="{!v.lead.Id}" objectApiName="Lead"> <div class="slds-media"> <div class="slds-media__figure"> <img src="{!v.lead.Thumbnail__c}" class="slds-avatar_large slds-avatar_circle" alt="{!v.targetFields.Title_c}"/> </div> <div class="slds-media__body"> <lightning:layout title="External Claim Number" class="slds-hint-parent"> <a onclick="{!c.navToRecord}"> <h3 class="slds-text-heading_small slds-m-bottom_xx-small">{!v.lead.External_Claim_Number__c}</h3> </a> <lightning:buttonIcon iconName="utility:edit" class="slds-col_bump-left" iconClass="slds-button__icon_hint" variant="bare" alternativeText="Edit Record" onclick="{!c.editRecord}" /> </lightning:layout>
the field is External Claim Number, currently the value is highlighted which is fine. however, i want the label of the field to come right above or before.
here is a screen shot to make it clear.