I've got a List View on a SmartForm, and I don't need headers on the columns because of how my data is set up. I can remove the text label from the headers, but I can't figure out how to get rid of the solid horizontal bar that displays at the top of the View where the headers would go.
Is this possible?
Can you hide or remove column headers on a list view?
Best answer by Kran
Hi RoryTheRoman,
To remove the Header bar use jQuery or JavaScript.
Use browser inspect option to first get the CSS selector path for header, and the use below script
<script>
$( document ).ready(function() {
$("Selectorpath").css('display','none');
});
</script>
After adding selector path it should be like
<script>
$( document ).ready(function() {
$("#_3a166218-f9*personal details removed*fc7-a8da-2e0861c3ddef > div.grid-body > div.grid-column-headers").css('display','none');
});
</script>
Add Data Label, with property type Literal as checked and add above script in expression property.
Let me know if this helps you.
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.