Generate a pdf afrer saving a webform

Hey i am new to frappe , i have created a customized print format for a certain doctype and i want when the user submit the web form relative to the doctype a pdf wil be created
Thank you in advance

Once the form is saved, you will automatically see a print option in the form, you can print from here and select your print format

1 Like

Thank you the answer, but i want to do it programmatically, when user fill the web form inherent to the doctype i wanna generate the pdf for downloading

You will have to write custom script for that, use can use after save event and redirect user to the print format

1 Like

thank you again , i will do it