Web to Lead Form with email

Web to Lead Form with email

Hello,

We are working on a Web to Lead form and need to execute the following actions on form submit - 
  • generate PDF containing form data
  • generate email containing form data
  • insert form data as Lead record.
The email, PDF works only if we remove the form action (for CRM insertion), hence data inserts into CRM but PDF/email fails. 

This is urgent and we would appreciate any suggestions or workarounds you could give! 

Thanks.