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

Attachement Related List on a Visualforce Page

Is there a way to add the attachement related list on a visualforce page? Can anyone give me some code samples ?


<apex:relatedList id="Attachments" subject="{!myObject}" list="NotesAndAttachments" title="Attached Documents"/>


list="NotesAndAttachments" is the important thing


What do you mean by {!myObject} in the subject brackets? is that the record Id?


Okay I figured out the myObject thing, but I would I get attachments to be visible on a site?