Viewing 7 replies - 1 through 7 (of 7 total)
  • I am having this same problem. there is a column in the log called posted_data that has all the information collected but it is not separated into columns. It is separated by ><

    inesgraphiste

    (@inesgraphiste)

    Hello, same problem here, I asked for a code and only the email adress can be found in the log file, what can I do to get it properly?
    TIA

    dtynan

    (@dtynan)

    The export csv log feature of Email Before Download does not support picking up additional fields that you may have added to your CF7 form and putting that data as its own column in the csv file.

    That said, there are some possible things you could do:

    As noted by jasonred (above), it does have one field in the csv called “posted_data” which does contain all the data entered by the user into the CF7 form. That data is in XML format with each field as an XML entry and then the user’s entered data in each entry. Thus, you could write a script or somehow parse out the data you are trying to get out of that chunk of XML in the “posted_data” column of the csv. This would require additional processing of the log file once you downloaded it (php or perl or python or ruby would probably be a good choice). Or, you could actually modify export.php and put that XML parsing right into the export feature … again, requires programming skills.

    Another option might be to use the Contact Form DB plugin ( https://wordpress.org/plugins/contact-form-7-to-database-extension/ ). I have never used that plugin, but it appears to take all the data posted in a CF7 form and store it in a database and then provides ways to view or get that data. I suspect that it will work for all the fields in the form, though you may have trouble getting the filename (the download file) I suspect (could be a problem if you have multiple downloads / checkboxes). Someone wrote up a tutorial page that seems to imply that using Contact Form DB works fine with EBD, though I have no idea if that’s true or not ( https://www.anphira.com/tutorial/downloads-contact-form/ ). Obviously if you go this route then you would be getting the data through Contact Form DB somehow rather than using the export feature in EBD.

    dtynan

    (@dtynan)

    fyi – here’s a blog post that has a section about Contact Form DB. It gives kind of an overview of what it does – https://www.elegantthemes.com/blog/tips-tricks/best-contact-form-7-extensions

    inesgraphiste

    (@inesgraphiste)

    Thanks a lot dtyman, I’ll try that

    inesgraphiste

    (@inesgraphiste)

    Great! it works just fine with the Contact Form DB, thanks a lot 🙂

    dtynan

    (@dtynan)

    You’re welcome — I’m glad to hear it works. So, how do you access your extra fields? Is there some way to download a CSV of your data through Contact DB or..?

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Fields saved to log’ is closed to new replies.