Dynamic cam variable name

Hi @eugene, @sebastian.stamm and @FabianHinsenkamp.

Please let me describe my issue here:

On the submittion of my task form, a PDF document is generated and is saved in a directory path of my choice.

Could you please guide me a bit on how can this document be downloaded on the submittion of the task form (instead of being saved) ?

My initial thought was to work with a “submit” Event Listener in order to create an additional “File” variable (with the name of my PDF document) but I’ve just read here that the cam-file-download directive only works when the form initially loads.

Thank you in advance,
Steve