<?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>How to colour my Decimal field based on its value</title><link>https://community.appian.com/discussions/f/new-to-appian/26517/how-to-colour-my-decimal-field-based-on-its-value</link><description>Hi, I have a decimal field on my interface that I want to colour based on its value..something like 
 if =8: then green 
 if &amp;lt;&amp;gt;8: then blue 
 How do I do that?? 
 I know how to colour a text field. 
 Please help 
 thanks 
 jaideep</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to colour my Decimal field based on its value</title><link>https://community.appian.com/thread/104182?ContentTypeID=1</link><pubDate>Sat, 12 Nov 2022 09:47:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a1b6762a-74c5-4eaf-a628-9a2f69e6c381</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;I recommend to stay to Appian OOTB as much as possible. Most approaches to customize things will get you into trouble sooner or later. Also keep in mind that our clients typically run multiple apps and you would have to keep these customizations in sync across all apps and delivery teams.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to colour my Decimal field based on its value</title><link>https://community.appian.com/thread/104175?ContentTypeID=1</link><pubDate>Sat, 12 Nov 2022 02:43:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:722ff254-5046-4c48-8eda-be40d9b1bd98</guid><dc:creator>Jaideep Banerjee</dc:creator><description>&lt;p&gt;Hi Aman, sorry my bad.&amp;nbsp; I meant&amp;nbsp;richTextDisplayField..something that Chris is suggesting below.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;thanks for looking though&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to colour my Decimal field based on its value</title><link>https://community.appian.com/thread/104174?ContentTypeID=1</link><pubDate>Sat, 12 Nov 2022 02:37:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:76ea3a76-fd1c-492e-a58c-fbf2505319af</guid><dc:creator>Jaideep Banerjee</dc:creator><description>&lt;p&gt;Thanks Chris..okay so this also looks like another option. I need to try it&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to colour my Decimal field based on its value</title><link>https://community.appian.com/thread/104173?ContentTypeID=1</link><pubDate>Sat, 12 Nov 2022 02:36:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7d254a03-9659-4cde-9f69-9155b553c7e5</guid><dc:creator>Jaideep Banerjee</dc:creator><description>&lt;p&gt;yeah thanks Stefan..i think I will have to do it to keep the UI look simple. Currently I am doing a validation message but that&amp;#39;s not looking good&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to colour my Decimal field based on its value</title><link>https://community.appian.com/thread/104165?ContentTypeID=1</link><pubDate>Fri, 11 Nov 2022 15:30:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4e6a2dce-2e8e-46ac-ac8a-a95f898c91b6</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;Additionally, if you can change to&lt;em&gt;&lt;strong&gt; a!richTextDisplayField()&lt;/strong&gt;&lt;/em&gt; you can utilize color-coded text values:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="csharp"&gt;a!localVariables(
  local!values: {7.55,8,9.22},
  
  {
    a!forEach(
      items: local!values,
      expression: a!richTextDisplayField(
        value: a!richTextItem(
          text: fv!item,
          color: if(fv!item=8,&amp;quot;#3DDD2A&amp;quot;,&amp;quot;#0000FF&amp;quot;)
        )
      )
    )
  }
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to colour my Decimal field based on its value</title><link>https://community.appian.com/thread/104158?ContentTypeID=1</link><pubDate>Fri, 11 Nov 2022 09:31:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:aa69980c-4247-4a63-8856-a76cc9250ef2</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Text fields do not support colors.&lt;/p&gt;
&lt;p&gt;Instead you could use a side-by-side layout to place an icon nearby and change its color based on some conditions.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to colour my Decimal field based on its value</title><link>https://community.appian.com/thread/104152?ContentTypeID=1</link><pubDate>Fri, 11 Nov 2022 09:19:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:035ba4b2-3cb1-47a6-a7b4-9162c6bd147a</guid><dc:creator>Amaan Shekh</dc:creator><description>&lt;p&gt;I want to know &amp;quot;How to color a text field?&amp;quot; , please share if you know.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>