Page 1 of 1

Hide field on List Page if field is NULL (Custom Template)

Posted: Wed Jul 31, 2013 5:19 am
by costeeta

I would like to display a field on the list page only if that field is NOT NULL. How do I write that IF statement in CustomTemplateBody?

This is the code I have in CustomTemplateBody
<tr{{{row_attrs}}}>
<td><img src="facebook.png"> {{{facebook}}}
<img src="twitter.png">{{{twitter}}}
<img src="linkedin.png">{{{linkedin}}}</td>
</tr>

I want to display those images and fields only when the field is not not null.


Re: Hide field on List Page if field is NULL (Custom Templat

Posted: Thu Aug 01, 2013 7:00 pm
by Webmaster

Use Row_Rendered server event (see Server Events and Client Scripts in the help file) to add your image to ViewValue conditionally.