Hello,
I hope that we can continue in English since we don't have a German-speaking support staff member at the moment.
The CSV attachment which is sent along with email is generated in the following file:
Joomla/components/com_breezingforms/facileforms.process.php
starting from around line 5190 to 5306.
The name of the CSV export file is generated around line 5290 with this line of ccode:
$csvname = $this->uploads . '/ffexport-' . $date_stamp . '-' . mt_rand(0, mt_getrandmax()) . '.csv';
There you can change the CSV file name to whatever suits you.
For example, if you would want to change the name to static value it would look like this:
$csvname = $this->uploads . '/WANTEDNAME-' . mt_rand(0, mt_getrandmax()) . '.csv';
You would just have to replace WANTEDNAME with the name you wish to use.
If you wish to use a value that the user filling in the form has entered in a certain field in the form (let's say name of that field is FIELDNAME), you would have to replace this line of code:
$csvname = $this->uploads . '/ffexport-' . $date_stamp . '-' . mt_rand(0, mt_getrandmax()) . '.csv';
with this code:
foreach($xmldata as $data){
if ($data[_FF_DATA_NAME] == "field2"){ $fieldValue = $data[_FF_DATA_VALUE]; }
}
$csvname = $this->uploads . '/' .$fieldValue . '.csv';
You could also use the user's username in the name of CSV attachemt file similar as explained here
crosstec.org/en/forums/15-usage/123352-u...achments.html#222593 .
As for the second part of your request, chaning the order of the fields in the CSV attachment and deciding which files to include will be harder to achieve. That is not a native BreezingForms feature, but if you have some coding knowledge in PHP, you can try to do so in lines from 5190 to 5306 where the "expcsv" function is defined.
This topic
crosstec.org/en/forums/1-forums/125628-csv-export.html#233199 is about CSV export in Manage Records and not the CVS attachemnt which comes along with email, but it might help you achieve what you want.
P.S. Sorry for the late response, we had a lot of requests.
Let me know whether this helped.
Regards,
Mihaela