<?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>Show comments default if there is comment if not remove the space of the comment</title><link>https://community.appian.com/discussions/f/new-to-appian/38425/show-comments-default-if-there-is-comment-if-not-remove-the-space-of-the-comment</link><description>Hi Everyone, 
 am trying to show the comments history in a card layout to fetch the approval of the stage/comments added by the user /name. 
 Requirement is to show the comments if user is added, if not need to remove the space of the comment. Below is</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Show comments default if there is comment if not remove the space of the comment</title><link>https://community.appian.com/thread/145081?ContentTypeID=1</link><pubDate>Wed, 05 Feb 2025 08:03:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cd71d0d5-3139-48fa-afb4-dbcb5e025797</guid><dc:creator>KavithaTV</dc:creator><description>&lt;p&gt;Thanks for the reference code, Gayathri.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Show comments default if there is comment if not remove the space of the comment</title><link>https://community.appian.com/thread/145050?ContentTypeID=1</link><pubDate>Tue, 04 Feb 2025 14:21:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c83be64c-53b7-4d0a-a84e-c6d495688d5d</guid><dc:creator>gayatria0439</dc:creator><description>&lt;p&gt;here am adding code for your reference&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!commentsData: index(
    a!queryRecordType(
      recordType: &amp;#39;recordType!{b9769d97-f83d-4c90-b8de-acbc2b678ec5}IM Comments&amp;#39;,
      pagingInfo: a!pagingInfo(1,10)
    ),
    &amp;quot;data&amp;quot;,
    null
  ),
  {
    a!forEach(
      items: local!commentsData,
      expression: {
        a!cardLayout(
          contents: {
            a!sideBySideLayout(
              items: {
                a!sideBySideItem(
                  item: a!imageField(
                    images: a!userImage(
                      user: fv!item[&amp;#39;recordType!{b9769d97-f83d-4c90-b8de-acbc2b678ec5}IM Comments.fields.{614925a0-7974-41e8-ba5a-9a65b1f9ddc9}createdBy&amp;#39;]
                    ),
                    size: &amp;quot;SMALL&amp;quot;,
                    style: &amp;quot;AVATAR&amp;quot;
                  ),
                  width: &amp;quot;MINIMIZE&amp;quot;
                ),
                a!sideBySideItem(
                  item: a!richTextDisplayField(
                    labelPosition: &amp;quot;COLLAPSED&amp;quot;,
                    value: {
                      a!richTextItem(
                        text: fv!item[&amp;#39;recordType!{b9769d97-f83d-4c90-b8de-acbc2b678ec5}IM Comments.fields.{9c0d2338-4f73-418d-9abd-44a043b6b342}name&amp;#39;],
                        size: &amp;quot;STANDARD&amp;quot;,
                        style: { &amp;quot;STRONG&amp;quot; }
                      ),
                      char(32),
                      a!richTextItem(
                        text: text(
                          fv!item[&amp;#39;recordType!{b9769d97-f83d-4c90-b8de-acbc2b678ec5}IM Comments.fields.{dafb326d-85f8-47b2-b2f8-7a81c564fa48}createdOn&amp;#39;],
                          &amp;quot;hh:MM a&amp;quot;
                        ),
                        color: &amp;quot;SECONDARY&amp;quot;,
                        size: &amp;quot;SMALL&amp;quot;
                      )
                    }
                  ),
                  width: &amp;quot;AUTO&amp;quot;
                ),
                a!sideBySideItem(
                  item: a!richTextDisplayField(
                    labelPosition: &amp;quot;COLLAPSED&amp;quot;,
                    value: {
                      a!richTextIcon(
                        icon: &amp;quot;reply&amp;quot;,
                        linkStyle: &amp;quot;STANDALONE&amp;quot;,
                        color: &amp;quot;ACCENT&amp;quot;
                      )
                    }
                  ),
                  width: &amp;quot;MINIMIZE&amp;quot;
                ),
                a!sideBySideItem(
                  item: a!richTextDisplayField(
                    labelPosition: &amp;quot;COLLAPSED&amp;quot;,
                    value: {
                      a!richTextIcon(icon: &amp;quot;ellipsis-v&amp;quot;, color: &amp;quot;ACCENT&amp;quot;)
                    }
                  ),
                  width: &amp;quot;MINIMIZE&amp;quot;
                )
              },
              alignVertical: &amp;quot;MIDDLE&amp;quot;
            ),
            a!richTextDisplayField(
              labelPosition: &amp;quot;COLLAPSED&amp;quot;,
              value: {
                a!richTextItem(
                  text: {
                    &amp;quot;@&amp;quot;,
                    fv!item[&amp;#39;recordType!{b9769d97-f83d-4c90-b8de-acbc2b678ec5}IM Comments.fields.{b5aad2ad-3aa4-45ab-9905-bc88a186ad25}mentionedName&amp;#39;]
                  },
                  color: &amp;quot;ACCENT&amp;quot;
                ),
                char(32),
                a!richTextItem(
                  text: fv!item[&amp;#39;recordType!{b9769d97-f83d-4c90-b8de-acbc2b678ec5}IM Comments.fields.{980370d2-5d99-4476-bcc2-867d59c91ec8}comments&amp;#39;]
                )
              },
              showWhen: a!isNotNullOrEmpty(fv!item[&amp;#39;recordType!{b9769d97-f83d-4c90-b8de-acbc2b678ec5}IM Comments.fields.{980370d2-5d99-4476-bcc2-867d59c91ec8}comments&amp;#39;])
            ),
            a!cardLayout(
              contents: {
                a!columnsLayout(
                  columns: {
                    a!columnLayout(
                      contents: {
                        a!cardLayout(
                          contents: {
                            a!richTextDisplayField(
                              labelPosition: &amp;quot;COLLAPSED&amp;quot;,
                              value: {
                                a!richTextIcon(
                                  icon: &amp;quot;file-invoice-dollar&amp;quot;,
                                  color: &amp;quot;#674ea7&amp;quot;,
                                  size: &amp;quot;MEDIUM_PLUS&amp;quot;
                                )
                              },
                              align: &amp;quot;CENTER&amp;quot;,
                              marginAbove: &amp;quot;EVEN_LESS&amp;quot;,
                              marginBelow: &amp;quot;EVEN_LESS&amp;quot;
                            )
                          },
                          height: &amp;quot;AUTO&amp;quot;,
                          style: &amp;quot;#d9d2e9&amp;quot;,
                          marginBelow: &amp;quot;NONE&amp;quot;,
                          showBorder: false
                        )
                      },
                      width: &amp;quot;EXTRA_NARROW&amp;quot;
                    ),
                    a!columnLayout(
                      contents: {
                        a!cardLayout(
                          contents: {
                            a!sideBySideLayout(
                              items: {
                                a!sideBySideItem(
                                  item: a!richTextDisplayField(
                                    labelPosition: &amp;quot;COLLAPSED&amp;quot;,
                                    value: {
                                      a!richTextItem(
                                        text: {
                                          fv!item[&amp;#39;recordType!{b9769d97-f83d-4c90-b8de-acbc2b678ec5}IM Comments.fields.{420479fd-41b7-4fc8-bf9b-f7ec9d9adeb5}claimNumber&amp;#39;]
                                        },
                                        style: { &amp;quot;STRONG&amp;quot; }
                                      )
                                    },
                                    preventWrapping: true,
                                    marginBelow: &amp;quot;NONE&amp;quot;
                                  )
                                ),
                                a!sideBySideItem(
                                  item: a!tagField(
                                    labelPosition: &amp;quot;COLLAPSED&amp;quot;,
                                    tags: {
                                      a!tagItem(
                                        text: fv!item[&amp;#39;recordType!{b9769d97-f83d-4c90-b8de-acbc2b678ec5}IM Comments.fields.{f64b0cc0-4b39-4349-ae51-f7b6ac55805c}tagName&amp;#39;],
                                        backgroundColor: &amp;quot;#9db6d0&amp;quot;
                                      )
                                    },
                                    size: &amp;quot;SMALL&amp;quot;
                                  ),
                                  width: &amp;quot;MINIMIZE&amp;quot;
                                )
                              },
                              alignVertical: &amp;quot;MIDDLE&amp;quot;,
                              marginBelow: &amp;quot;NONE&amp;quot;
                            ),
                            a!richTextDisplayField(
                              labelPosition: &amp;quot;COLLAPSED&amp;quot;,
                              value: {
                                a!richTextItem(
                                  text: concat(
                                    text(
                                      fv!item[&amp;#39;recordType!{b9769d97-f83d-4c90-b8de-acbc2b678ec5}IM Comments.fields.{dafb326d-85f8-47b2-b2f8-7a81c564fa48}createdOn&amp;#39;],
                                      &amp;quot;MMM&amp;quot;
                                    ),
                                    &amp;quot; &amp;quot;,
                                    text(
                                      fv!item[&amp;#39;recordType!{b9769d97-f83d-4c90-b8de-acbc2b678ec5}IM Comments.fields.{dafb326d-85f8-47b2-b2f8-7a81c564fa48}createdOn&amp;#39;],
                                      &amp;quot;dd&amp;quot;
                                    ),
                                    &amp;quot;, &amp;quot;,
                                    text(
                                      fv!item[&amp;#39;recordType!{b9769d97-f83d-4c90-b8de-acbc2b678ec5}IM Comments.fields.{dafb326d-85f8-47b2-b2f8-7a81c564fa48}createdOn&amp;#39;],
                                      &amp;quot;YYYY&amp;quot;
                                    )
                                  ),
                                  color: &amp;quot;SECONDARY&amp;quot;
                                )
                              },
                              preventWrapping: true,
                              marginBelow: &amp;quot;NONE&amp;quot;
                            )
                          },
                          link: a!dynamicLink(label: &amp;quot;Dynamic Link&amp;quot;, saveInto: {}),
                          height: &amp;quot;AUTO&amp;quot;,
                          style: &amp;quot;NONE&amp;quot;,
                          marginBelow: &amp;quot;NONE&amp;quot;,
                          showBorder: false
                        )
                      }
                    )
                  },
                  alignVertical: &amp;quot;MIDDLE&amp;quot;,
                  spacing: &amp;quot;NONE&amp;quot;
                )
              },
              link: a!dynamicLink(),
              height: &amp;quot;AUTO&amp;quot;,
              style: &amp;quot;NONE&amp;quot;,
              shape: &amp;quot;SEMI_ROUNDED&amp;quot;,
              padding: &amp;quot;NONE&amp;quot;,
              marginAbove: &amp;quot;LESS&amp;quot;,
              marginBelow: &amp;quot;NONE&amp;quot;,
              showBorder: true,
              showShadow: false
            )
          },
          link: a!dynamicLink(label: &amp;quot;Dynamic Link&amp;quot;, saveInto: {}),
          height: &amp;quot;AUTO&amp;quot;,
          style: &amp;quot;NONE&amp;quot;,
          shape: &amp;quot;ROUNDED&amp;quot;,
          padding: &amp;quot;STANDARD&amp;quot;,
          marginBelow: &amp;quot;LESS&amp;quot;,
          showBorder: false,
          showShadow: true
        )
      }
    )
  }
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Show comments default if there is comment if not remove the space of the comment</title><link>https://community.appian.com/thread/145049?ContentTypeID=1</link><pubDate>Tue, 04 Feb 2025 14:19:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:19ca2c06-89c8-434f-ad3c-065d55512aae</guid><dc:creator>gayatria0439</dc:creator><description>&lt;p&gt;Sure &amp;nbsp;,&lt;/p&gt;
&lt;p&gt;We should use &lt;code&gt;a!isNotNullOrEmpty()&lt;/code&gt; for the specific item in the comments section. The expression &lt;code&gt;a!isNotNullOrEmpty(fv!item[comment])&lt;/code&gt; will display the comment data if a comment is present; otherwise, it will not display anything. I have handled this using Rich Text and written a &lt;code&gt;showWhen&lt;/code&gt; condition to manage the display logic&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Show comments default if there is comment if not remove the space of the comment</title><link>https://community.appian.com/thread/145039?ContentTypeID=1</link><pubDate>Tue, 04 Feb 2025 11:12:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:13cc4c01-9452-493d-b813-cbfd46982893</guid><dc:creator>KavithaTV</dc:creator><description>&lt;p&gt;Yes, Gayathri exactly. Is it possible to send the reference on this logic to remove the gap if there are no comments added? I appreciate your help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Show comments default if there is comment if not remove the space of the comment</title><link>https://community.appian.com/thread/145029?ContentTypeID=1</link><pubDate>Tue, 04 Feb 2025 06:34:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:87d657f9-3876-45b1-a428-dc351ef43dd0</guid><dc:creator>KavithaTV</dc:creator><description>&lt;p&gt;Hi Gayathri, Yes Exactly.&amp;nbsp; Could you please help with the reference logic here?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Show comments default if there is comment if not remove the space of the comment</title><link>https://community.appian.com/thread/144990?ContentTypeID=1</link><pubDate>Sat, 01 Feb 2025 19:40:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:eb2482c4-ce87-42c1-9098-077a2e8718ca</guid><dc:creator>gayatria0439</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&amp;nbsp;,&lt;/p&gt;
&lt;p&gt;I think you are expecting like this right ??&lt;br /&gt;&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/62/pastedimage1738438799611v3.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Show comments default if there is comment if not remove the space of the comment</title><link>https://community.appian.com/thread/144950?ContentTypeID=1</link><pubDate>Thu, 30 Jan 2025 19:47:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8a198c29-4d07-4f9d-a1a1-52ddfdd534f7</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Duplicate of&amp;nbsp;&lt;a href="/discussions/f/new-to-appian/38426/show-comment-by-default-in-the-comment-history-if-there-is-no-comment-added-remove-the-space"&gt;https://community.appian.com/discussions/f/new-to-appian/38426/show-comment-by-default-in-the-comment-history-if-there-is-no-comment-added-remove-the-space&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>