SEND OR DON'T SEND PDF BASED ON FIELD VALUE

Formidable Forms
December 13, 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.
December 13, 2021 22:52:41
E2Pdf
Topics: 7
Messages: 3617
Support
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!
Get News and Updates
Our monthly newsletter keeps you in the loop, so you'll always be up to date with the latest news and updates about E2Pdf.
* You can update your email subscription preferences here.
All trademarks, service marks, trade names, product names, and logos appearing on this website are the property of their respective owners. The use of trademarks such as Formidable Forms®, Forminator Forms®, Gravity Forms®, JetFormBuilder®, WordPress®, WooCommerce®, WPForms® and others is solely for identification purposes (nominative use) and does not imply any affiliation, sponsorship, or endorsement by the respective trademark holders.
© 2017 - 2026, https://e2pdf.com

We use cookies to collect and analyse information on site performance and usage, to provide social media features and to enhance and customise content and advertisements. By clicking "Accept Selected", you consent to use of selected cookies according to our Cookie Policy.