I would really appreciate if someone can help me over this.

Requirement - I need a Notes and attachment of particular contact on VF page.

I created a VF page in which I am calling related list of Notes and Attachment.

<apex:page title="Notes and Attachments" standardController="Contact">
    <apex:detail relatedList="false"/>
    <apex:relatedList list="CombinedAttachments" id="notes" subject="{!$CurrentPage.parameters.id}"/>

the URL of this page is https://myInstance.visual.force.com/apex/NotesAttachment?id=contact_id&sfdc.override=1

everything is working fine. but when i open the page it has Contact fields below the page Notes and Attachment related list.

enter image description here

I just want the Notes and Attachment section only. I am little new salesforce if anyone can help me, I would really appreciate.

Thank you.

  • only thing you want is Notes & Attachments ?
    – HSdev
    Jan 20, 2017 at 10:52
  • yes only one thing Notes & Attachments section
    – Sagar
    Jan 20, 2017 at 10:53

1 Answer 1


Remove <apex:detail> from your code

Try this Code :

<apex:page title="Notes and Attachments" standardController="Contact"> <apex:relatedList list="CombinedAttachments" id="notes" subject="{!$CurrentPage.parameters.id}"/> </apex:page>

Your UI look like as following Image :enter image description here

  • ok let me try..
    – Sagar
    Jan 20, 2017 at 10:58
  • Thanks @HSdev.. it works.. May I know the reason why because of <apex:detail relatedList="false"/> it was fetching all the contact fields??
    – Sagar
    Jan 20, 2017 at 10:59
  • welcome :) don't forget to mark this as solved !!
    – HSdev
    Jan 20, 2017 at 11:00

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .