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

Remove Link from <apex:outputField >
I am displaying the name of the asset on a page like this <apex:outputField id="CaseField3" value="{!Case.AssetId}"/>.
This displays the name of the asset as a link since this is a lookup relationship, therefore, the user can click on it and is taken to the asset page. I would like to prevent that from happening, is there a way to remove the hyperlink and just display the name? or at least don't do anything if the user clicks on the link ?
Does <apex:outputText value="{!Case.Asset.Name}"> work?
Thanks but it doesn't display anything. I must add that this page is on the customer portal.
Can you use the style attribute to remove the hyperlink? Try this:
Thanks. Unfortunately that didn't work. It stays the same.
Hi
I am also facing the same problem, If you resolve this issue please let me know..
I ended up retrieving the field using a different SOQL query. With that new query I was able to use OutputText insted and it worked fine.