function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Vivekh88Vivekh88 

Removing hyperlink for lookup field in excel

Hi,
I am trying to generate a excel from a VF page with lookup value in it. When i tried to generate the lookup field comes with hyperlink. Any possible workout to remove those hyperlink.
User-added image

this is my VF page coding.
<td class="cellBody" align="center">
       <apex:outputField value="{!ms.Owner__c}" />
</td>

I tried to put OutputText instead of OutputField but i am getting Lookup field ID instead of Name. 

Thanks
Vivek
Carlos Campillo GallegoCarlos Campillo Gallego
Hi Vivekh,

Have you tried adding {!ms.Owner__c.Name} ?

Regards
Vivekh88Vivekh88
Hi Carlos,
{!ms.Owner__r.Name} -  I am getting empty values when I use this.