Replies: 1
Hello devs,
I’ve recetnly purchased Forminator Pro to have acces to PDF Generator Addon since E2PDF is insufficient for my needs. It’s a great tool, but I need help with the following.
I have a form with Stripe payment field. After my clients fill the form and pay, I need to generate an invoice and attach it to the email notification email for the client. In the pdf invoice I need to show the price as well as the tax amount, and then Total price (subtotal + tax). Even tho there is “tax” field with {tax} variable in the Payment field in the PDF, the tax is “0” in final PDF. I can’t figure out how to set the {tax} value in PDF or in the Form. I haven’t been able to find this information in documentation either.
The second problem is that I need to set the name of the final PDF file dynamicaly to the value of “{hidden-1}” variable from the Form. This variable holds the number of the clients order that is incrementing by 1 with each succesfull form submission. I need the final PDF file name to match with the order number due to the afterwards processing on another platform (if the file names were all the same, it wouldn’t work). So f.e. if the {hidden-1} value is “202401” I need the PDF file name to be “202401.pdf”. When I tried to name the PDF “{hidden-1}”, forminator strips it of the curly braces and PDF remains named “hidden-1.pdf”, which doesn’t work.
Thank you for the help!