• Tamilselvan chinnasamy
  • NEWBIE
  • 0 Points
  • Member since 2021

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies
How to change the name of the button label as record changes? dynamically... ? If type is prospect, then button label should change to prospect. How to do that?
How to change the name of the button label as record changes? dynamically... ? If type is prospect, then button label should change to prospect. How to do that?
Hello,
I have created an aura component to be able to display the value of an account field (Tip To Smarties) on the related Case.
User-added imageBut the value of the field do not display when I put the component on the case page. It does work when I put the component on the Account page but that's not what I am looking for.

How can I display the value when putting the aura component on the Case page?
Thanks

aura component:
<aura:component implements="flexipage:availableForRecordHome,force:hasRecordId" access="global" >
    
    <aura:attribute name="recordId" type="Id"/>
    
    
     <lightning:recordViewForm recordId="{!v.recordId}" objectApiName="Account">
        <div class="slds-box slds-theme_default">
            <lightning:outputField fieldName="Tip_To_Smarties__c" />
        </div>
    </lightning:recordViewForm>
    
</aura:component>