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
TehNrdTehNrd 

outputField formula with with HYPERLINK() does not display correctly

We have a custom text formula field on opportunity that looks like this:

HYPERLINK("www.google.com", "Click Here")

 

When you try to display this field on a visualforce page it displays the entire HTML code rather than "Click Here":

<apex:page standardController="Opportunity"> <apex:pageBlock mode="view"> <apex:pageBlockSection > <apex:outputField value="{!Opportunity.Hyperlink_Test__c}" /> </apex:pageBlockSection> </apex:pageBlock> </apex:page>

 

Displays:

<a href="www.google.com" target="_blank">Click Here</a>

 

Looks like a potential bug.

 

-Thanks,

Jason

Best Answer chosen by Admin (Salesforce Developers) 
TehNrdTehNrd
This was fixed in Winter 10.

All Answers

TehNrdTehNrd
Confirmed as bug. No ETA on a fix.
TehNrdTehNrd
This was fixed in Winter 10.
This was selected as the best answer
jwhartfieldjwhartfield

I am seeing this bug still in Spring '12.  I have opened a case with Salesforce about it.