Create a Link to trigger the Zapier action

Formidable Forms
January 29, 2023 16:07:48
Topics: 11
Messages: 30
Hi,
I have setup zapier to save file to dropbox folder via a webhook, it works great. However I noticed it if I place this shortcode into the success message that it does it automatically. without having to click a button like the download shortcode.
I'd like to create a formidable view that has the various created pdfs displayed, which I already know how to do, but to then have a button/link that if clicked will trigger the zapier function to save to dropbox. Is there a way to wrap the zapier shortcode into a href link? or something like that, itd be helpful to label the link as well.
January 30, 2023 02:38:24
E2Pdf
Topics: 7
Messages: 3614
Support
Hi,

Unfortunately, E2Pdf doesn't have such functionality. We currently moved it to "Support Request" to review the possibility to add its support.

For now, If you have enough knowledge of WordPress and PHP, you can try to create an ajax URL, which will send an Entry ID for which it must be fired "zapier" shortcode, and fire shortcode via PHP as:

do_shortcode('[e2pdf-zapier id="1" dataset="' . $entry_id . '" webhook="https://hooks.zapier.com/hooks/catch/1234567/ocfuhfo/"]');

* where "1" is the ID of E2Pdf Template
** $entry_id is the dynamic Formidable Forms Entry ID

We remain at your service.

We would really appreciate your feedback at WordPress.org!
February 05, 2023 17:43:40
Topics: 11
Messages: 30
Thats awesome!
I found a way around the issue for now, but will refer to this for the future.
February 15, 2024 01:29:31
E2Pdf
Topics: 7
Messages: 3614
Support
Hello,

We can see a mistake in the code. You have "dataset2" in the shortcode, which is incorrect. It must be "dataset=":

do_shortcode('[e2pdf-zapier id="17" dataset="' . $entry_id . '" webhook="https://hooks.zapier.com/hooks/catch/*********/********/"]');

However, from your code, we also do not see that you are sending the Entry ID via Ajax...

P.S. You can try to use the current js code https://codefile.io/f/fG6YXJolVV But you still must get the Entry ID via jQuery / JavaScript and assign it to the function above.

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.