how to get rid of cfdb table header?
-
Hi,
I have a problem with contact form to db that I have not the slightest idea what to do about, maybe someone out there can help.I have a shortcode which produces a table with a few columns. The last column contains a picture, and I have found a code snippet that makes the picture show. It goes like this:
[cfdb-datatable form="Model Registrieren" id="mytable" show="cf7-modelcounter,your-name,vorname,nachname,Bild01"] {{AFTER}} <script type="text/javascript" language="Javascript"> (function($) { $(document).ready(function() { $("#mytable td[title='Bild01'] > div > a").each(function() { var href = $(this).attr('href'); var label = $(this).html(); var imgTag = '<img height="30" width="30" src="' + href + '" alt="' + label + '" >'; $(this).parent().html(imgTag); }) }); })(jQuery); </script> {{/AFTER}} [/cfdb-datatable]
Works just fine, the picture shows up.
But there is a big, ugly search fied on top of the table which I want to get rid of. I tried the option “header=”false”, but when I apply that to the shortcode, nothing happens.[cfdb-datatable form="Model Registrieren" id="mytable" show="cf7-modelcounter,your-name,vorname,nachname,Bild01" header=”false"]
Anybody any kind of idea?
Thanks,
Evi
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘how to get rid of cfdb table header?’ is closed to new replies.