ChronoEngine.com homepage

Forums

Please write a review for the extension you are using on the Joomla extensions directory before posting a new question as we are being spammed by many negative reviews.

Thank you for your support!

Download files function is blocking submit

jovc 09 May, 2019
When I use the Download file funtion, the download works but the form seems to hang. It shows the overlay and the spinning circle and nothing happens.

Am I doing something wrong?

I've also tested with a fresh Joomla AND Chronoforms 6 install. Same issue.
healyhatman 09 May, 2019
Yes you're doing something wrong - when you tell it to download a file it stops all other processing, it's just how the internet works. You need to create a separate download event that has the download file action. After your submit event has finished, use a javascript block with DOM Ready ticked with
window.location({url:download});

You can also display a link to {url:download} in case the auto download code doesn't run.
jovc 09 May, 2019
Thanks for the information.

I solved it by displaying a link (generated by a 3d party download plugin) in a message after submit. Otherwise it would rely on javascript only, based on the proposed solution.
healyhatman 09 May, 2019
You can also display a link to {url:download} in case the auto download code doesn't run.
Max_admin 11 May, 2019
You may also add the download action to a new form page, then use a "Redirect" in the submit event but add a time delay.

Best regards
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
This topic is locked and no more replies can be posted.

2Checkout.com

2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for goods and services provided by ChronoEngine.com