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.
Am I doing something wrong?
I've also tested with a fresh Joomla AND Chronoforms 6 install. Same issue.
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
You can also display a link to {url:download} in case the auto download code doesn't run.
window.location({url:download});
You can also display a link to {url:download} in case the auto download code doesn't run.
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.
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.
You can also display a link to {url:download} in case the auto download code doesn't run.
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
Best regards
This topic is locked and no more replies can be posted.