mdsimpson / contact-form-7-to-database-extension

CFDB - WordPress plugin to save form submissions into a database
GNU General Public License v3.0
240 stars 59 forks source link

Don't Record (or Show) g-recaptcha-response #66

Open StanfordAlan opened 6 years ago

StanfordAlan commented 6 years ago

Is there a way to not capture or at least not show the g-recaptcha-response in the entries? It takes up almost all of my screen so that the other columns are squished to the point I can't read them.

Thanks!

mdsimpson commented 6 years ago

In the CFDB options, you can indicate the names of fields that you do not wish it to capture.

bkjproductions commented 5 years ago

To me, it would be OK if that data came at the end of the row, perhaps, but that is probably something to take up with the CF7 author or our Overlords at Google.

Is this the setting: Do not save fields in DB named (comma-separated list, no spaces) I guess once some data has been saved, I would have to go back and delete all the form's data after applying this setting.

I was thinking you could just HIDE the data, or ellipsize it. I don't mind that it's there, per se, just hate seeing it in the otherwise clean interface.

I was trying to hide using this css:

th[title=g-recaptcha-response], td[title=g-recaptcha-response] {display:none;} but that makes my columns go all wonky.

How about ellipsize the table, by default, maybe even for any large data? Something like this, though there is some funky inline width-setting probably from the sortable columns that is throwing off my alignment, even with my dreaded !important bit stuck in there:

th[title=g-recaptcha-response], td[title=g-recaptcha-response] {width: 100px!important;} td[title=g-recaptcha-response] div { text-wrap: unset; width: 100px; white-space: nowrap; overflow: hidden!important; text-overflow: ellipsis; }

Nice that you've given each TD a title so it can be accessed, BTW!