<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Conditional hide of a row in dynamic doc generation</title><link>https://community.appian.com/discussions/f/plug-ins/12705/conditional-hide-of-a-row-in-dynamic-doc-generation</link><description>Hi all, 
 I want to conditionally hide a row from the document getting dynamically generated. If the field of addressLine2 is blank then I don&amp;#39;t want that row to be shown as a blank row in the document generated. 
 
 
 
 Regards 
 Ekansh Jain</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Conditional hide of a row in dynamic doc generation</title><link>https://community.appian.com/thread/82186?ContentTypeID=1</link><pubDate>Sat, 29 May 2021 13:32:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fa260c82-f626-4af8-9a9e-966cb2a992e7</guid><dc:creator>micheled3910</dc:creator><description>&lt;p&gt;How has to be used [compress]?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Conditional hide of a row in dynamic doc generation</title><link>https://community.appian.com/thread/57022?ContentTypeID=1</link><pubDate>Fri, 22 Jun 2018 03:05:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cad0780d-ae1e-489e-885c-21ca4a497283</guid><dc:creator>ekanshj</dc:creator><description>Thanks guys but we can do it using [compress] [/compress]&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Conditional hide of a row in dynamic doc generation</title><link>https://community.appian.com/thread/56955?ContentTypeID=1</link><pubDate>Thu, 21 Jun 2018 05:16:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d9c11777-377a-413b-a36e-63b30fa18eab</guid><dc:creator>Shiva Valusa</dc:creator><description>&lt;p&gt;It is not a great idea but, why can&amp;#39;t you create a same template without address 2 field and handle it in PM based on address 2 value condition.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Conditional hide of a row in dynamic doc generation</title><link>https://community.appian.com/thread/56900?ContentTypeID=1</link><pubDate>Wed, 20 Jun 2018 06:08:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5fc7ea7d-ac88-4f69-bbcc-4dbc468e56cf</guid><dc:creator>josep</dc:creator><description>Hello Ekansh,&lt;br /&gt;
&lt;br /&gt;
As a suggestion I recommend to create all the logic and decisions(as much as possible in Appian) that way our docx just focus on rendering and it does not contain logic. &lt;br /&gt;
For example instead of using 2 variables just use 1 which concatenate the strings and adds one “\r\n” or a char(10) in case the second line exists&lt;br /&gt;
&lt;br /&gt;
But if you still need to handle the render on the DOCX In a previous post I tried to explain how to implement those conditionals here is the link &lt;br /&gt;
&lt;a href="https://community.appian.com/discussions/f/plug-ins/11048/docx-from-dynamic-template"&gt;community.appian.com/.../docx-from-dynamic-template&lt;/a&gt;&lt;br /&gt;
(Which is mostly what Jaya comments with little more details)&lt;br /&gt;
&lt;br /&gt;
Hope this helps&lt;br /&gt;
&lt;br /&gt;
Jose&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Conditional hide of a row in dynamic doc generation</title><link>https://community.appian.com/thread/56821?ContentTypeID=1</link><pubDate>Tue, 19 Jun 2018 05:20:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f6b71e86-5ab0-4e4e-a6c4-3bd12474494a</guid><dc:creator>JayaKrishna</dc:creator><description>Hi&lt;br /&gt;
&lt;br /&gt;
This may help you&lt;br /&gt;
create an element which returns true when addressline2 not blank and return false when addressline2 is  blank and &lt;br /&gt;
use this &lt;br /&gt;
 «[#if doc.employee.addressline2status= &amp;quot;true&amp;quot;»&lt;br /&gt;
«[/#if]»&lt;br /&gt;
where ever its needed&lt;br /&gt;
&lt;br /&gt;
Regards,&lt;br /&gt;
Jaya Krishna&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>