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
Del_SantosDel_Santos 

Quote

Hi,

 

Please help.  I want to display a Quote Contact Name in plain text in VF page but it is displaying as a link instead.

Here's my code which is displaying as a link.

 

<apex:outputfield value="{!Quote.ContactId}"/>

 

Thanks and Regards,

Del

Best Answer chosen by Admin (Salesforce Developers) 
Imran MohammedImran Mohammed

Use <apex:outputText value="{!Quote.Contact.Name}"/>

Hope this helps.

All Answers

FromCRMWonderlandFromCRMWonderland

Try using "outputText" instead.

 

- alok

Del_SantosDel_Santos

Hi alok,

 

Thanks, I did but it is returning the id instead of the contact name.

 

-- see results

"003P00000016L3eIAE"

 

Imran MohammedImran Mohammed

Use <apex:outputText value="{!Quote.Contact.Name}"/>

Hope this helps.

This was selected as the best answer
Del_SantosDel_Santos

Hi Imran,

 

Weee, it works..

 

Thanks for usual support

CKGCKG

I also used this, as i was facing same problem , but am getting a link in return, how can i change this. i coud get the output name but it comes with a hyperlink to it

 

CKGCKG

Hi, am using a custom contact lookup field in opportunity , so when I pull out this field to my PDF quote, it shows up with a link over the name. I would like to have plain text, the command I used for this is

<apex:outfield value="{!Opportunity.Contact_Name__c}"/> this shows contact name with hyperlink Carl Johnson. when I use <apex:outputText Value... it gives me contact ID..

How can I solve this problem

 

Thanks,

Gowtham

Del_SantosDel_Santos

Hi Gowtham,

 

Try this:

 

<apex:outputfield value="{!Opportunity.Contact_Name__r.name}"/>

 

Del