How can you export form submissions from Joomla forms implemented using ChronoForms? One easy-to-manage approach is to add the appropriate code via the backend. To do this, select any form under "Components - ChronoForms5" and switch to the "Setup" tab.
On the thank-you page that is displayed after the form is submitted (e.g. the "On thanks" event), add a "Custom Code" element. In this element, we then insert the PHP code that, for example, outputs the form data to a file. The form data can be accessed through the $form variable, such as a date picker field with the ID datepicker139 using $form->data['datepicker139'], or a text field with the ID text159 using $form->data['text159']. Make sure to wrap the PHP code with the opening <?php and closing ?> tags. From there, the possibilities are virtually endless: you can transfer data back and forth, move files via FTP to a selected directory, and much more. Tested with Joomla 3.9.1.
