<?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>Rich text styled icon failure</title><link>https://community.appian.com/discussions/f/general/18342/rich-text-styled-icon-failure</link><description>I am trialing the software and I am having trouble with styled icons in the rich text field. The two issues are: 
 
 1. The information in the tutorial does not match the Appian software. If I chose &amp;quot;styled icon&amp;quot; for the rich text field, there is no </description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Rich text styled icon failure</title><link>https://community.appian.com/thread/72221?ContentTypeID=1</link><pubDate>Thu, 20 Feb 2020 07:57:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:91eb3682-20ca-4c01-a4b2-aae88d2cc2b6</guid><dc:creator>ManuelHTG</dc:creator><description>&lt;p&gt;It might well be that the version that it is use in the academy is not the latest one, but I would assume that you are doing something wrong. Anyways, if you find an error on the academy, you should address it from there, not in the Appian community.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The icon goes inside a richTextDisplay field, so you need to have something more like this&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;  a!richTextDisplayField(
    labelPosition: &amp;quot;ABOVE&amp;quot;,
    value: {
      a!richTextIcon(
        icon: &amp;quot;star&amp;quot;
      )
    }
  )&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;so if you want to have a condition on the icon, you could do it directly there&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;{
  a!richTextDisplayField(
    labelPosition: &amp;quot;ABOVE&amp;quot;,
    value: {
      a!richTextIcon(
        icon: if(
          ri!vehicle.availability,
          &amp;quot;check&amp;quot;,
          &amp;quot;remove&amp;quot;
        )
      )
    }
  )
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;if you are not sure of how those components work, i would suggest that your use the design mode to add the icon and then edit it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Rich text styled icon failure</title><link>https://community.appian.com/thread/72220?ContentTypeID=1</link><pubDate>Thu, 20 Feb 2020 07:25:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5fc982e5-11f8-4756-acf6-681bd1fe6f7b</guid><dc:creator>sivakumard0001</dc:creator><description>&lt;p&gt;you will have to write following expression. To display icon, the expression should be within a!richTextIcon()&lt;/p&gt;
&lt;p&gt;{&lt;br /&gt; a!richTextIcon(&lt;br /&gt; icon:&amp;nbsp;&lt;span style="font-family:inherit;"&gt;if(&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;ri!vehicle.availability,&lt;/p&gt;
&lt;p&gt;&amp;quot;check&amp;quot;,&lt;/p&gt;
&lt;p&gt;&amp;quot;remove&amp;quot;&lt;/p&gt;
&lt;p&gt;)&lt;/p&gt;
&lt;p&gt;)&lt;br /&gt; &lt;br /&gt; &lt;br /&gt;}&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>