Option to Delay Processing

Formidable Forms
September 23, 2020 15:09:02
jstraete
Topics: 34
Messages: 111
We run into an issue where we submit a Formidable Form and the following page that loads after submitting the form will either take forever to do so or timeout and fail all together. Part of this is due to it being a big form, but also because it submits a few emails upon submission with e2PDF attachments which I know also take some time to submit.

I notice when we submit the form, one of the emails will come through after about 30 seconds, and then another one about 30 seconds later, and so on. It would be ideal if the submission page would load first, and then the e2PDF forms to process last. This may be something I would have to take up with Formidable Forms and I will explore that also, but if there is anything that could be done on the e2PDF side, that'd be helpful.
September 23, 2020 16:38:46
E2Pdf
Topics: 7
Messages: 3614
Support
We know about this problem and unfortunately can't yet offer working solution as it's the problem of PHP. It process functions one by one and will render fully page only when all functions will fire, so in theory mails actions from Formidable Forms must be fired via cron in separate script to avoid this...

Formidable Forms executes sending mails on form submission, so when they executed -> E2Pdf parses mail message -> generates PDFs if needed -> Attaches it to mail -> Mail server send mail and only after this PHP will go on to other functions and will render final page/response.

It looks like the only way to avoid form locking is prepare some script which will run via cron in background and will fire Formidable Forms hooks to send emails. It can be done for example via some hidden field inside form. Cron script will get entries for needed form which has default value in this hidden field like '0', on start of process this hidden field can be updated to '1', script will rise email action for this entry, and will update hidden field to '2' after mail sent.

However as soon as we will have some free time we will try to take a look closer on this problem and maybe will prepare some custom solution/plugin to solve it.

We would really appreciate your feedback at WordPress.org!
September 23, 2020 20:52:29
jstraete
Topics: 34
Messages: 111
Ok thank you for the follow up. It would certainly be a great feature to have one day either through e2PDF or Formidable Forms.
May 06, 2021 19:10:27
jstraete
Topics: 34
Messages: 111
Hey Oleksandr,

I'm just following up here on this to see if there is any kind of timeline you could give me on this? If not, I am going to reach out to a developer I think about trying to setup what I need here. I just thought before going the custom solution route, I would check with you to see if there are any updates here first.

Thanks,

Jesse
May 07, 2021 04:13:18
E2Pdf
Topics: 7
Messages: 3614
Support
Hi,

Unfortunately we do not yet have built-in global solution for current issue. We still have it on our TODO list however we can't give you any ETA at this moment. Sorry for inconvenience.

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.