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
Arnold PernocaArnold Pernoca 

Web-2-Lead with Attachments using Apex/Visualforce

Hello everyone,

I want to create a Web-2-lead form which supports attachments. I can simply generate the code using the built in functionality that salesforce offers. However, in order to support attachments I need to write some code (Apex/ Visualforce). Can someone provide an example or simply explain how to go from the automatically generated web-2-lead HTML code to a visualforce page which uses an apex controller to save the attachments.

I am in need of an explaantion to better understand how this theoretically works.

Thank you! 
Dinesh GopalakrishnanDinesh Gopalakrishnan
Hi Arnold,

Please check the below link and let me know if you have any queries.

https://salesforce.stackexchange.com/questions/3842/can-an-attachment-be-sent-from-a-web2lead-form-into-salesforce-lead

Thanks,
Dinesh