I want to send the form filled up during registration as an pdf in email attachment.The form is build using lightning component. I didn't find any solution for this. Is this possible in lightning?
Your form will have to be renderable to a Visualforce page if you want to do it using native Salesforce functionality. This suggests that depending on how the "form" is created in your component, it will need to be done in one of the following ways:
- Captured inside of a "Lightning I-frame" that holds a Visualforce page.
- Capture the information using the fields in a regular Lightning Component's form, then pass them into another page via the Component's controller & a VF Controller.
- The 2nd page would be pure Visualforce/html which uses "renderas=pdf".
- Use the latter page to render the PDF document you're going to attach to the email.
I'd think #2 would be the better choice.