Attaching image on form page to the email
-
So close but so far ??
Ok, I have a custom builder for tiny homes, with a Ninja form below it on the same page, here: https://mov.gigamediagroup.com/custom-log-cabins/The user builds their little home then once they have the enter their Name, Email, Phone, Message in the Ninja form.
What I have the Ninja form set to AJAX submission. I need to send that final built building along with he contact details via the Ninja form. I was thinking I could fire some JS using the Submit via Ajax to grab the image. From research, I found the html2canvas Javascript library (https://html2canvas.hertzen.com/documentation.html#how-it-works) which will take a screenshot of the whole page or a specified DIV and in this case the DIV with the final built building has an ID of “vpc-preview”.
I need to have the screenshot DIV included in the email by firing some custom JS and adding it to the email.
Any help is greatly appreciated!
- The topic ‘Attaching image on form page to the email’ is closed to new replies.