Viewing 3 replies - 1 through 3 (of 3 total)
  • It’s difficult to tell what’s happening from that screenshot rather than looking at the data file itself.

    My guess is that the data itself might not be messed up and instead it just looks messed up because you are looking at it in Excel and Excel appears to not be parsing it as a comma-separated value file (there are various options in Excel to tell it how to understand text files it brings in & it looks like maybe you don’t hav.e the right ones selected).

    Also, just fyi, the export csv file function has the field names hard-coded in there, so it will not make columns in the csv file for any extra fields you put on the form. Thus, it will have a column for the value of the “your-name” field from the form but not any extra name fields (like surname or whatever). Even though there won’t be a column in the csv for each extra field you put on the form, the data for any extra fields you add will actually be there, but it’s all stuffed into that xml you see in the “posted_data” column. Thus, “posted_data” will be an xml blob & it will contain every field & value that was POSTed up to the server when the website visitor hit Submit on your form. In order to get at that data, you’d probably want to use some sort of script that could parse that xml blob & get the data out you want then write out a new csv file with the columns you want & whatever you wanted from the xml (this might also be possible in some programs like Excel, but I don’t know if it can parse xml in a cell or not).

    Thread Starter previsha

    (@previsha)

    Thanks for the quick response. I’ll need to test. I’m not sure if its a mac problem as well for some reason.

    One last thing is there a way to add an image instead of wording for the inline download.

    There is no built-in way – like through menus or settings – to do an image instead of wording for the download

    There are two css classes on the a href for the inline link. One class is “icon-button” and the other is “download-icon”. Using css styling, you can probably make it look like a button with the text inside it. I think that’s what that’s for and it seems like I vaguely remember someone doing that on some page I looked at. You’ll need some CSS skills to do this I suppose.

    Or, you could edit the email-before-download.php file & change the html to make it do some sort of image/button thingy rather than the text. You can search the file for “download-icon” and you’ll find 3 lines where it builds the HTML in the php code. Which of the 3 that gets used depends on what options you’ve chosen so you’d probably just want to change all 3 to do what you want. Obviously, you’ll need some basic PHP and HTML skills to do this.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Log csv does not show info correctly’ is closed to new replies.