Forums

CSV Export Issue on form

cmwincom 14 Feb, 2025

I have an advanced form that has an area on the form to submit entries. Below the form is a table that shows all the entries. The form for adding new entries works with no problems.

Above the table I've added a button to download the table in CSV format. I've added the csvexport action to download the table. My problem is the export does not work. I'm not prompted to save the csv file. The page grays out for about 5 seconds and then nothing. If I remove the form for adding new entries, the export works.Is it possible to have the form to add new entries and a button to download the table on the same advanced form? If so, what do I need to do to get the CSV export working? 

Max_admin 15 Feb, 2025
Answer

the button should point to a form page in a different page group (in v7 you create a new page group first below the form pages), that page should have the CSV action set to download

This is how it looks like in v8 (the better version now), but the concept is the same in v7:

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
cmwincom 15 Feb, 2025

This is how I have it setup...Here's the button.

Then in its own page group is CSV Export.When I click the download button the page grays out for the three to five seconds and I'm not prompted to save the file.

Max_admin 15 Feb, 2025

the button should be a Link to the download page, a submit button will not work

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
cmwincom 15 Feb, 2025

I now have the button setup like this and it takes me straight to a blank page. Nothing has changed in the CSV export. Do I need to duplicate the Read Data action from the first page on the download points page?

Max_admin 15 Feb, 2025

try to access the download page directly in your browser, does it download a file ?

The page link is at the Link icon at the top right corner of the page

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
cmwincom 16 Feb, 2025
1 Likes

Got it. When I added a Read Data action to the downloads page it worked. Thanks for the help.

You need to login to be able to post a reply.