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
MikeGillMikeGill 

Remove blue hover over link from VF/PDF ouput

I am trying to remove the hover over link (in blue) and just display the output i.e. the name not the id

 

   <tr>
                 <td id="label">
                    Sales Rep
                 </td>
                <td id="REP">
                    <apex:outputField value="{!Opportunity.OwnerId}"/>
                 </td>
            </tr>

 

Using outputText displays the Id, which I don't want.

 

I'm wondering two options here

 

1. Some kind of inline style override - ???

 

2. Use workflow rule to copy the value

 

Any help, really appreciated.

Best Answer chosen by Admin (Salesforce Developers) 
sanjaypatidarsanjaypatidar

We can use Owner Name field  - <apex:outputField value="{!Account.Owner.Name}"/>

 

or the 

You can use the style as below - but the link will still be there only the underline can go using this.

 

style=" text-decoration: none; "

 

let me know if this helps


Cheers!!

Sanjay

All Answers

sanjaypatidarsanjaypatidar

We can use Owner Name field  - <apex:outputField value="{!Account.Owner.Name}"/>

 

or the 

You can use the style as below - but the link will still be there only the underline can go using this.

 

style=" text-decoration: none; "

 

let me know if this helps


Cheers!!

Sanjay

This was selected as the best answer
MikeGillMikeGill

That works - thanks

 

Didn't think of join to name. 

MushroomMushroom

Hi

Could you help me to solve the same problem with you. Getting rid of the link and the underline.

I tried to change the style in <tr> tag, but nothing happened. :-(

 

It will be great if you could help me.

 

R