Hi,
We have a scenario where someone completing a form needs to retain a copy of the details for their records.
The form is submitted securely (through a workflow we have built). It is not appropriate for a copy of the data to be emailed back to the person completing the form, due to the type of data contained.
I was thinking perhaps a PDF (or other) could be generated locally when the form is submitted, which can then be saved by the user on their machine.
Has anyone ever done anything like that before?
Many thanks,
Matt
I'm thinking that when the person hits the submit button you create the PDF and either attach is somewhere on the page where it makes sense (requires ajax submitting) so the user can click the link and manually download the receipt or you do a prompt somehow...could this be a way of achieving what you want?
Otherwise you can probably also hook into a .net library, which can generate the PDF for you if you don't submit the form using ajax for instance.
Create PDF on local machine when submitting
Hi, We have a scenario where someone completing a form needs to retain a copy of the details for their records.
The form is submitted securely (through a workflow we have built). It is not appropriate for a copy of the data to be emailed back to the person completing the form, due to the type of data contained.
I was thinking perhaps a PDF (or other) could be generated locally when the form is submitted, which can then be saved by the user on their machine.
Has anyone ever done anything like that before? Many thanks, Matt
Hi Matt
I'm wondering if this jsPdf library could perhaps be of any use? https://parall.ax/products/jspdf
I'm thinking that when the person hits the submit button you create the PDF and either attach is somewhere on the page where it makes sense (requires ajax submitting) so the user can click the link and manually download the receipt or you do a prompt somehow...could this be a way of achieving what you want?
Otherwise you can probably also hook into a .net library, which can generate the PDF for you if you don't submit the form using ajax for instance.
/Jan
Thanks Jan and sorry for delayed response.
I'll take a look at the solution suggested above.
Thanks, Matt
Hi,
Do you have any ideas about the best way to do PDF export of forms records for Umbraco 10? Still, Js library would be the case?
Thanks, Alex
is working on a reply...