A strange thing occurs here: a PDF file is only attaced the second time a form is submitted.
This is what I did: first I used the 'HTML to PDF' action in my form and after that the 'Email [GH]' action. The intention is that on submitting the form a PDF file is created and after that this file is mailed.
But it seems first the mail is sent and after that the file is uploaded (this explains why the first time no file is attached to the mail).
What am I doing wrong? And how can I correct this?
This is what I did: first I used the 'HTML to PDF' action in my form and after that the 'Email [GH]' action. The intention is that on submitting the form a PDF file is created and after that this file is mailed.
But it seems first the mail is sent and after that the file is uploaded (this explains why the first time no file is attached to the mail).
What am I doing wrong? And how can I correct this?