Forums

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
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.