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
bfuhrbfuhr 

Can I create a custom button to upload a file from my computer?

Hi,

I would like to create a button in the opportunities tab that allows me to search my computer for a file and upload it to that opportunity (similar to a browse button).  We have certain files we need uploaded for every opportunity so I would like to have a field for each of these that has a label with the type of file that needs to be uploaded there and a place for the file and the custom upload button. Can anyone help?

Thanks

Pradeep_NavatarPradeep_Navatar

Create a custom link or button on the opportunity standard page and on click call a custome visualforce page. In the custom visualforce page, you need to put the logic to browse the image from your computer. You can save the images in the document folder or in any other folder as per your requirements.

 

Hope this helps.

bfuhrbfuhr

Great! But I am not familiar with visualforce pages and I don't know the logic to put in it. Any ideas?