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
Varun AnnadataVarun Annadata 

Is possible to add a command button which will redirect to new record creation page of attachments under the particular object?

I have a vf section in my record detail page which displays the attachments under the object.How can i make a command button in such a way that when clicked on it it redirects to new record Attachment creation page for the current object?
Abhilash Mishra 13Abhilash Mishra 13
I once had a similer requirement.I achieved it by javascript.
create a simple button(for same look and feel use SFDC csss classes) ,call a javascript function on click of button. user window.location to redirect to new record creation page.