SEND OR DON'T SEND PDF BASED ON FIELD VALUE

Formidable Forms
13 December, 2021 13:48:37
tracyseacoast
Topics: 1
Messages: 1
using Formidable Forms to send email with the shortcode. How can I put a condtion on that shortcode based on a field. Something like:
If field 1543 equals "no", then send the pdf attachement.
if field 1543 equals "yes", do not send the pdf.
i tried this and it actually crashed my staging site!
[if 1543 equals="no"][e2pdf-attachment id="6"][/if 1543]]

thank you.
13 December, 2021 22:52:41
E2Pdf
Support
Topics: 7
Messages: 3330
Hi,

It must work as you mentioned however it seems you have mistake in shortcodes usage due "]":

It must be: [if 1543 equals="no"][e2pdf-attachment id="6"][/if 1543]

Instead of: [if 1543 equals="no"][e2pdf-attachment id="6"][/if 1543]].

If it still will not work, attach please screenshot of your mail body please.

We remain at your service.
We would really appreciate your feedback at WordPress.org!