<?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 Help make service catalog item variable bold and color on portal in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/help-make-service-catalog-item-variable-bold-and-color-on-portal/m-p/1346134#M3060</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I created a variable with label type and wrote a catalog client script to make it bold and color. It is not working on portal, I get error "there is a javascript error in your browser console" on portal&lt;/P&gt;
&lt;PRE&gt;function onLoad() {&lt;BR /&gt; var text = $j("label[for='IO:f37690b2db1d53c0fee9f7d41d96195a']"); // f37690b2db1d53c0fee9f7d41d96195a is the sys_id of label: vac_details&lt;BR /&gt; text.css('font-weight', 'bold');&lt;BR /&gt; text.css('font-size', '125%');&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/PRE&gt;</description>
    <pubDate>Tue, 05 May 2020 20:25:56 GMT</pubDate>
    <dc:creator>Service Manager</dc:creator>
    <dc:date>2020-05-05T20:25:56Z</dc:date>
    <item>
      <title>Help make service catalog item variable bold and color on portal</title>
      <link>https://www.servicenow.com/community/developer-forum/help-make-service-catalog-item-variable-bold-and-color-on-portal/m-p/1346134#M3060</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I created a variable with label type and wrote a catalog client script to make it bold and color. It is not working on portal, I get error "there is a javascript error in your browser console" on portal&lt;/P&gt;
&lt;PRE&gt;function onLoad() {&lt;BR /&gt; var text = $j("label[for='IO:f37690b2db1d53c0fee9f7d41d96195a']"); // f37690b2db1d53c0fee9f7d41d96195a is the sys_id of label: vac_details&lt;BR /&gt; text.css('font-weight', 'bold');&lt;BR /&gt; text.css('font-size', '125%');&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/PRE&gt;</description>
      <pubDate>Tue, 05 May 2020 20:25:56 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/help-make-service-catalog-item-variable-bold-and-color-on-portal/m-p/1346134#M3060</guid>
      <dc:creator>Service Manager</dc:creator>
      <dc:date>2020-05-05T20:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: Help make service catalog item variable bold and color on portal</title>
      <link>https://www.servicenow.com/community/developer-forum/help-make-service-catalog-item-variable-bold-and-color-on-portal/m-p/1346135#M3061</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;What you can do is create a widget with HTML (&lt;A href="https://docs.servicenow.com/bundle/orlando-servicenow-platform/page/build/service-portal/task/create-new-widget.html" rel="nofollow"&gt;https://docs.servicenow.com/bundle/orlando-servicenow-platform/page/build/service-portal/task/create-new-widget.html&lt;/A&gt;) that has the text you want for the label and you can make it bold, etc. and then add that to your catalog item as a "macro" variable (&lt;A href="https://docs.servicenow.com/bundle/orlando-it-service-management/page/product/service-catalog-management/reference/r_VariableTypes.html" rel="nofollow"&gt;https://docs.servicenow.com/bundle/orlando-it-service-management/page/product/service-catalog-management/reference/r_VariableTypes.html&lt;/A&gt;).&lt;/P&gt;
&lt;P&gt;Example:&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/137850iA8016BFEABEA15B1/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;This is where you'd associate that new widget you made to your macro variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="language-javascript"&gt;&lt;CODE&gt;&amp;lt;div&amp;gt;
  &amp;lt;b&amp;gt;This is a bold label!&amp;lt;/b&amp;gt;
&amp;lt;/div&amp;gt;&lt;/CODE&gt;&lt;/PRE&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/137856iD5A5644025BF5181/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Please mark reply as Helpful/Correct, if applicable. Thanks!&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2020 20:39:52 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/help-make-service-catalog-item-variable-bold-and-color-on-portal/m-p/1346135#M3061</guid>
      <dc:creator>Allen Andreas</dc:creator>
      <dc:date>2020-05-05T20:39:52Z</dc:date>
    </item>
  </channel>
</rss>

