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

Visualforce Edit Task Attachments Related List Button

I have a visualforce page for both Task View and Task Edit.  I have added the Attachments related list to the standard page layout and added :

<apex:relatedList list="Attachments" subject="{!$}" />

to the Task View page as a related list.

I can render the related list in the Task Edit page with the same code but I am not able to get the "Attach File" button to show up.  I understand that this should only be visible when the task is being edited.  I have tried updating the visualforce apiversion from 25 to 29 with no luck there either.

Anytime I use "AttachedContentDocuments" or "CombinedAttachments" in place of "Attachments" in the code, I get an error message saying it's not a valid child of the Task object.

Any help would be appreciated.  This should be simple... I guess I am just not seeing it.

Matt WhalleyMatt Whalley
Sorry for the late response.  If you are still having issues with this, you can only upload attachments in edit mode for Activities.