Skip to main content

Hi Salesforce Community,

I’m working in Lightning Experience and I have multiple Lightning Record Pages for the same object (using different Apps / Record Types / Profiles as needed).

I need to display the same field with a different label depending on which record page the user is viewing. Example:

  • On Record Page A, show field label as “Agent Reference”
  • On Record Page B, show the same field label as “Consultant Ref”

I know the standard field label is global for the object, and if I change it, it changes everywhere.

My question:

 

What’s the recommended way to show a

custom label per page for the same field on different record pages?

What I’ve tried / considered:

  • Different record types (but field label still stays the same)

 If anyone has best practice guidance (I would like try native salesforce option other than LWC), I’d really appreciate it.  

 

Thanks

1 个回答
  1. 2月24日 06:16

    Hello @Trupti Labhasetwar

     

    You can’t natively show different labels for the same field on different Lightning Record Pages for the same object. The field label is global and stays the same across layouts, apps, record types, and pages.  

     

    The only time different labels are possible is through translations based on user locale. If users have different languages set, you can translate the field label so each locale sees a different name, but this won’t work for different pages with the same language.  

     

    If you just need a different display label on another page, a common native workaround is to create a formula field that references the original field and give it the alternate label. You can place the original field on one page and the formula field on another. This works well but is read-only, so it’s not suitable if users must edit the value in both places. 

     

    I hope this helps

0/9000