Conditionally create pdf

Formidable Forms
4 March, 2020 19:25:30
benadam
Topics: 5
Messages: 15
Is it possible some how to make a condition to create or not create the pdf file after formidable send? For example if value of field x is y don't create the pdf at all.

Thanks!
5 March, 2020 06:43:58
E2Pdf
Support
Topics: 7
Messages: 3335
Hi,

You must be able to use standard logic of Formidable Forms without any issues inside "Success Message"/"Email Body" Message for example:

[if 25 equals="Option 1"][e2pdf-download id="208"][/if 25]

We remain at your service.
We would really appreciate your feedback at WordPress.org!
5 March, 2020 06:51:49
benadam
Topics: 5
Messages: 15
Thanks. Yes i'm aware of that option, but will it disable the pdf creation when the form is sent? or will the pdf file be created only not attached?
5 March, 2020 07:21:54
E2Pdf
Support
Topics: 7
Messages: 3335
[e2pdf-download] just generates link which will generate PDF based on entry data on each new request of this link. PDF will not be saved anywhere. If you need to save PDF you must use [e2pdf-save] shortcode. For attachments to emails must be used [e2pdf-attachment] shortcode. Shortcode will generate PDF based on entry data, will send it via email and will remove generated PDF from server.

P.S. With Formidable Forms condition above shortcode will not fire if Field ID 25 will not meet condition.

We remain at your service.
We would really appreciate your feedback at WordPress.org!
5 March, 2020 08:06:57
benadam
Topics: 5
Messages: 15
Thank you very much for clarifying! you are providing a great plugin and amazing support! i wish i could left more than one review on Wordpress :)