Skip to main content
I have Contract object and I want to display terms lookup field details in PDF in visualforce. How to do that?
2 respostas
  1. 14 de abr. de 2021, 06:16
    Thanks for replying, below is the code. I am rendering whole page as PDF and it works fine but below "Terms & Conditions" I want to display the value of "Terms_Conditions__c" which is a field of Lookup object to contract.

    <apex:page renderAs="pdf" standardcontroller="Contract" >

        <apex:detail relatedList="true"/><br/><br/><br/><br/>

        <apex:pageBlock title="Terms & Conditions"></apex:pageBlock>

        <apex:outputText value="{!Contract.Terms_Conditions__c}">//NOT WORKING

        </apex:outputText>

    </apex:page>
0/9000