Cover sheets can be set up for components such as Essays, Extracurriculars, Recommendations, and Enrollment History to provide helpful context for reviewers. They are especially useful when a record doesn’t include an attachment—for instance, if an essay is entered directly into a text field or a recommendation is submitted through a form. A cover sheet for an Essay, for example, might display the Title, Topic, and Student Name.
The steps below outline how to create custom Cover Sheets that can be included in the Application PDF for reviewers. In this example, you'll create a custom Cover Sheet for the Test object, which is part of the TargetX Recruitment Manager package.
The Application Review Tool uses Salesforce FieldSets in cover sheets to make it easier to add and remove fields on the cover sheet.
<apex:page standardController="<<insert the api name of object>>" showHeader="false" applyHtmlTag="false" applyBodyTag="false" standardStylesheets="false">
<head>
<style type="text/css">
@page {
margin-top: 100px;
margin-bottom: 100px;
}
</style>
</head>
<body>
<div>
<h2><<insert some title>></h2>
<table width="100%" cellpadding="5px" cellspacing="5px">
<tbody>
<apex:repeat value="{!$ObjectType.<<insert the api name of object>>.FieldSets.<<insert field set name>>}" var="field">
<tr>
<td><b>{!field.label}</b></td>
</tr>
<tr>
<td><apex:outputtext style="white-space:pre-wrap;font-family:Helvetica, Arial Unicode MS, sans-serif;"" value="{!<<insert the api name of object>>[field.fieldPath]}"/></td>
</tr>
</apex:repeat>
</tbody>
</table>
</div>
</body>
</apex:page>
As per our example, it becomes:
<apex:page standardController=" TargetX_SRMb__Test__c" showHeader="false" applyHtmlTag="false" applyBodyTag="false" standardStylesheets="false">
<head>
<style type="text/css">
@page {
margin-top: 100px;
margin-bottom: 100px;
}
</style>
</head>
<body>
<div>
<h2> Test (GRE)</h2>
<table width="100%" cellpadding="5px" cellspacing="5px">
<tbody>
<apex:repeat value="{!$ObjectType. TargetX_SRMb__Test__c.FieldSets. GRE_Cover_Sheet}" var="field">
<tr>
<td><b>{!field.label}</b></td>
</tr>
<tr>
<td><apex:outputtext style="white-space:pre-wrap;font-family:Helvetica, Arial Unicode MS, sans-serif;" value="{!TargetX_SRMb__Test__c[field.fieldPath]}"/></td>
</tr>
</apex:repeat>
</tbody>
</table>
</div>
</body>
</apex:page>
<td>{!TargetX_SRMb__Recommendation__c[field.fieldPath]}<td/>
With
<apex:outputtext style="white-space:pre-wrap;font-family:Helvetica, Arial Unicode MS, sans-serif;" value="{!<<insert the api name of object>>[field.fieldPath]}"/>
<apex: outputtext style "white-space:pre-wrap; font-family:Helvetica, Arial Unicode
MS, sans-serif;" value " {!Target_SRMb_Enrollment_History_c[field.fieldPath]}"/>
<apex: outputtext style "white-space:pre-wrap; font-family:Helvetica, Arial Unicode
MS, sans-serif;" value "{!IF (field. Type ='date , ' (0, date, MM/dd/yyyy) ', ' (0)') )" >
{f <apex:param value-" (!Target_SRMb_Enrollment_History_c[field.fieldPath])" />})
</apex: outputText>