on-internet
← Community

How to conditionally hide a column in rtf template when the value is 0

Stack Overflow ·

I need to hide the whole column in the rtf template when the value is equal to '0'. Then it needs to be shown when the value is greater than 0. I have tried the ff. But none of them worked. Sol#1 Column Header <if@column:COLUMNAME="0"?> Cell <if@column:../../COLUMNAME="0"?> Sol#2 Column Header <if@column:contains(COLUMNAME, '0')?>COLUMNHEADERNAME> Cell <if@cell:contains(COLUMNAME, '0')?> Sol#3 Column Header <if@column:/COLUMNAME/@type="PRIVATE"?> Cell <if@column:/COLUMNAME/@type="PRIVATE"?> Here's the sample template output. The cells highlighted in yellow should be hidden. template output

Comments

Sign in or sign up to comment and upvote.

No comments yet.