Create a document from an embedded task form

Hi @martin.stamm,

As far as our recent discussion here is concerned, I managed to dynamically (on the submission of the form) generate and save in a directory path of my choice the PDF document :slightly_smiling_face:

But, could I please ask for an additional help here ?
I would prefer to automatically download this document rather than simply save it.
From another thread here Dynamic cam variable name - #6 by steftriant I read that cam-file-download directive can only work on the initial load of the form and not on the submission like in my case.
Have you got any idea please on how could I overcome this issue ? I didn’t take any answer there.

Thanks a lot in advance,
Steve