You need to sign in to do that
Don't have an account?

Adding custom field to AccountHierarchyTree
I am adding a custom field to the AccountHierarchyTree and have been able to successfully add this field BUT it is showing the SalesForce ID rather than the text. The field I am adding is a Lookup field to another account so the SalesForce ID of the account is displaying when I would like the Account Name to display. I added the following to the component but assume there is either something I need to add or use instead of apex:outputText. Any help is greatly appreciated! Thanks!
<apex:outputText style="{!IF(pos.currentNode,'font-weight: bold;','')}" value=", {!pos.account.Related_Program__c}" rendered="{!IF(pos.account.Related_Program__c != '', true, false)}"/>
You can continue to use <apex:outputText> but you have to use:
{!pos.account.Related_Program__r.Name} to get the name instead of the id.
You can use <apex:outputField> to avoid having to query for the Name field of the related record.
I hope this helps!
All Answers
You can continue to use <apex:outputText> but you have to use:
{!pos.account.Related_Program__r.Name} to get the name instead of the id.
You can use <apex:outputField> to avoid having to query for the Name field of the related record.
I hope this helps!
That worked, thanks!