Hi Guys ,
We can remove attach button from Notes And Attachment Related List from any object by creating a visualforce page.
Create a visualforce page RemoveAttachBTN with object standard controller .
Now go to the Edit Layout of the record and add this visualforce page by creating any section , the only drawback is that this section would be between Standard Button of page layout . We can put visualforce just like related list of record.
We can remove attach button from Notes And Attachment Related List from any object by creating a visualforce page.
Create a visualforce page RemoveAttachBTN with object standard controller .
<apex:page standardController="Account"> <apex:relatedList list="NotesAndAttachments"> <apex:facet name="header"> </apex:facet> <!--This line of code removing the attachment header--> </apex:relatedList> </apex:page>
https://ap1.visual.force.com/apex/RemoveAttachBTN?id=RecordIdofStandardController
Now go to the Edit Layout of the record and add this visualforce page by creating any section , the only drawback is that this section would be between Standard Button of page layout . We can put visualforce just like related list of record.
Its really very helpful,really nice one
ReplyDeleteHello i'm getting error: 'NotesAndAttachments' is not a valid child relationship name for entity Account' Any solution?
ReplyDelete