<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: How to highlight a field red on particular value. in ServiceNow AI Platform forum</title>
    <link>https://www.servicenow.com/community/servicenow-ai-platform-forum/how-to-highlight-a-field-red-on-particular-value/m-p/1129940#M86329</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is an old post but i am&amp;nbsp;posting&amp;nbsp;here to help all the users who still have this requirement.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please use 'g_form.getDisplayBox()' function. This is an existing ServiceNow function and can be very helpful in this situation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ex -&amp;nbsp;g_form.getDisplayBox(fieldName).setAttribute('style', 'color:red');&lt;/P&gt;
&lt;P&gt;Replace 'fieldName' with your field's name and it will highlight that field value in red color.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Himani&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Oct 2021 09:10:49 GMT</pubDate>
    <dc:creator>Community Alums</dc:creator>
    <dc:date>2021-10-19T09:10:49Z</dc:date>
    <item>
      <title>How to highlight a field red on particular value.</title>
      <link>https://www.servicenow.com/community/servicenow-ai-platform-forum/how-to-highlight-a-field-red-on-particular-value/m-p/1129933#M86322</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to highlight a field RED when it equal to value 1111.&lt;/P&gt;&lt;P&gt;I need to highlight &amp;nbsp; below mentioned field with red color, when it is equal to 1111.&lt;/P&gt;&lt;P&gt;This is a derived field, when ever the caller changes this value also get changes. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/116175i9FCA5001037871F2/image-size/large?v=v2&amp;amp;px=999" srcset="/community/image/serverpage/image-id/116175i9FCA5001037871F2/image-size/large?v=v2&amp;amp;px=999 1.0x" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Any Suggestion or Help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks. &lt;/P&gt;&lt;P&gt;&lt;A title="Platform" __default_attr="2010" __jive_macro_name="community" class="jive_macro_community jive-link-community-small jive_macro" data-id="2010" data-objecttype="14" data-orig-content="Platform" data-renderedposition="265_8_72_16" data-type="space" href="https://www.servicenow.com/community/undefined2010"&gt;Platform&lt;/A&gt;&lt;A title="Developer Community" __default_attr="2009" __jive_macro_name="community" class="jive_macro_community jive-link-community-small jive_macro" data-id="2009" data-objecttype="14" data-orig-content="Developer Community" data-renderedposition="265_80_160_16" data-type="space" href="https://www.servicenow.com/community/undefined2009"&gt;Developer Community&lt;/A&gt;&lt;A title="Discuss" __default_attr="2159" __jive_macro_name="community" class="jive_macro_community jive-link-community-small jive_macro" data-id="2159" data-objecttype="14" data-orig-content="Discuss" data-renderedposition="265_240_68_16" data-type="space" href="https://www.servicenow.com/community/undefined2159"&gt;Discuss&lt;/A&gt;&lt;A title="Develop" __default_attr="2160" __jive_macro_name="community" class="jive_macro_community jive-link-community-small jive_macro" data-id="2160" data-objecttype="14" data-orig-content="Develop" data-renderedposition="265_308_71_16" data-type="space" href="https://www.servicenow.com/community/undefined2160"&gt;Develop&lt;/A&gt;&lt;A title="Community Corner" __default_attr="2162" __jive_macro_name="community" class="jive_macro_community jive-link-community-small jive_macro" data-id="2162" data-objecttype="14" data-orig-content="Community Corner" data-renderedposition="265_379_139_16" data-type="space" href="https://www.servicenow.com/community/undefined2162"&gt;Community Corner&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2017 14:04:14 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ai-platform-forum/how-to-highlight-a-field-red-on-particular-value/m-p/1129933#M86322</guid>
      <dc:creator>srikanth241</dc:creator>
      <dc:date>2017-01-23T14:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to highlight a field red on particular value.</title>
      <link>https://www.servicenow.com/community/servicenow-ai-platform-forum/how-to-highlight-a-field-red-on-particular-value/m-p/1129934#M86323</link>
      <description>&lt;P&gt;Hi Abhay,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;you can achieve this using styles. Here is the reference &lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;A href="http://wiki.servicenow.com/index.php?title=Defining_Field_Styles" title="http://wiki.servicenow.com/index.php?title=Defining_Field_Styles"&gt;Defining Field Styles - ServiceNow Wiki&lt;/A&gt; &lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;A href="https://docs.servicenow.com/bundle/istanbul-servicenow-platform/page/administer/navigation-and-ui/task/t_DefineFieldStyles.html" title="https://docs.servicenow.com/bundle/istanbul-servicenow-platform/page/administer/navigation-and-ui/task/t_DefineFieldStyles.html"&gt;Define field styles&lt;/A&gt; &lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Ankur&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 23 Jan 2017 14:16:00 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ai-platform-forum/how-to-highlight-a-field-red-on-particular-value/m-p/1129934#M86323</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2017-01-23T14:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to highlight a field red on particular value.</title>
      <link>https://www.servicenow.com/community/servicenow-ai-platform-forum/how-to-highlight-a-field-red-on-particular-value/m-p/1129935#M86324</link>
      <description>&lt;P&gt;Have you tried Field Styles?&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;A href="https://docs.servicenow.com/bundle/istanbul-servicenow-platform/page/administer/navigation-and-ui/task/t_DefineFieldStyles.html" title="https://docs.servicenow.com/bundle/istanbul-servicenow-platform/page/administer/navigation-and-ui/task/t_DefineFieldStyles.html"&gt;Define field styles&lt;/A&gt; &lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 23 Jan 2017 14:22:03 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ai-platform-forum/how-to-highlight-a-field-red-on-particular-value/m-p/1129935#M86324</guid>
      <dc:creator>Slava Savitsky</dc:creator>
      <dc:date>2017-01-23T14:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to highlight a field red on particular value.</title>
      <link>https://www.servicenow.com/community/servicenow-ai-platform-forum/how-to-highlight-a-field-red-on-particular-value/m-p/1129936#M86325</link>
      <description>&lt;P&gt;Hey Abhay,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Refer this for your requirement- &amp;nbsp; &lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;A href="http://wiki.servicenow.com/index.php?title=Change_Form_Color_on_State_Change#gsc.tab=0" title="http://wiki.servicenow.com/index.php?title=Change_Form_Color_on_State_Change#gsc.tab=0"&gt;Change Form Color on State Change - ServiceNow Wiki&lt;/A&gt; &lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 23 Jan 2017 14:22:32 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ai-platform-forum/how-to-highlight-a-field-red-on-particular-value/m-p/1129936#M86325</guid>
      <dc:creator>nayanawadhiya1</dc:creator>
      <dc:date>2017-01-23T14:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to highlight a field red on particular value.</title>
      <link>https://www.servicenow.com/community/servicenow-ai-platform-forum/how-to-highlight-a-field-red-on-particular-value/m-p/1129937#M86326</link>
      <description>&lt;P&gt;Hi Ankur,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;This is not working, can you suggest any thing.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/116172iA2C7384E1AC28A29/image-size/large?v=v2&amp;amp;px=999" srcset="/community/image/serverpage/image-id/116172iA2C7384E1AC28A29/image-size/large?v=v2&amp;amp;px=999 1.0x" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 23 Jan 2017 16:19:16 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ai-platform-forum/how-to-highlight-a-field-red-on-particular-value/m-p/1129937#M86326</guid>
      <dc:creator>srikanth241</dc:creator>
      <dc:date>2017-01-23T16:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to highlight a field red on particular value.</title>
      <link>https://www.servicenow.com/community/servicenow-ai-platform-forum/how-to-highlight-a-field-red-on-particular-value/m-p/1129938#M86327</link>
      <description>&lt;P&gt;Hi Slava,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;This is not working, can you suggest any thing.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/116173iF4AE854268DD39F0/image-size/large?v=v2&amp;amp;px=999" srcset="/community/image/serverpage/image-id/116173iF4AE854268DD39F0/image-size/large?v=v2&amp;amp;px=999 1.0x" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 23 Jan 2017 16:20:22 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ai-platform-forum/how-to-highlight-a-field-red-on-particular-value/m-p/1129938#M86327</guid>
      <dc:creator>srikanth241</dc:creator>
      <dc:date>2017-01-23T16:20:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to highlight a field red on particular value.</title>
      <link>https://www.servicenow.com/community/servicenow-ai-platform-forum/how-to-highlight-a-field-red-on-particular-value/m-p/1129939#M86328</link>
      <description>&lt;P&gt;Hi Abhay,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Add this in value field directly i.e. 1111 without double quotes&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;"javascript: " is used only when you want to execute some condition and if "javascript: " is used then this value field expects boolean true/false.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;If the value field is evaluated to true then style is applied.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;If the value field is evaluated to false then style will not be applied.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt;Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt;Thanks&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt;Ankur&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 23 Jan 2017 17:40:27 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ai-platform-forum/how-to-highlight-a-field-red-on-particular-value/m-p/1129939#M86328</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2017-01-23T17:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to highlight a field red on particular value.</title>
      <link>https://www.servicenow.com/community/servicenow-ai-platform-forum/how-to-highlight-a-field-red-on-particular-value/m-p/1129940#M86329</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is an old post but i am&amp;nbsp;posting&amp;nbsp;here to help all the users who still have this requirement.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please use 'g_form.getDisplayBox()' function. This is an existing ServiceNow function and can be very helpful in this situation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ex -&amp;nbsp;g_form.getDisplayBox(fieldName).setAttribute('style', 'color:red');&lt;/P&gt;
&lt;P&gt;Replace 'fieldName' with your field's name and it will highlight that field value in red color.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Himani&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 09:10:49 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ai-platform-forum/how-to-highlight-a-field-red-on-particular-value/m-p/1129940#M86329</guid>
      <dc:creator>Community Alums</dc:creator>
      <dc:date>2021-10-19T09:10:49Z</dc:date>
    </item>
  </channel>
</rss>

