<?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: I want to add Info message in Portal view. in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/i-want-to-add-info-message-in-portal-view/m-p/3239250#M1195880</link>
    <description>&lt;P&gt;Like in the record producer how it's configured?&lt;BR /&gt;Using Client script or UI policy? I believe it should be UI policy.&lt;BR /&gt;If possible share the UI policy configuration.&lt;/P&gt;</description>
    <pubDate>Wed, 16 Apr 2025 08:16:44 GMT</pubDate>
    <dc:creator>J Siva</dc:creator>
    <dc:date>2025-04-16T08:16:44Z</dc:date>
    <item>
      <title>I want to add Info message in Portal view.</title>
      <link>https://www.servicenow.com/community/developer-forum/i-want-to-add-info-message-in-portal-view/m-p/3239208#M1195869</link>
      <description>&lt;P&gt;Hi Team.&lt;/P&gt;&lt;P&gt;I want to add Info message in Poral view.&lt;/P&gt;&lt;P&gt;Currently this message showing in platform view&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JVINAY_0-1744789241870.png" style="width: 1294px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/435425i28CD9C2321CA3EA2/image-dimensions/1294x55?v=v2" width="1294" height="55" role="button" title="JVINAY_0-1744789241870.png" alt="JVINAY_0-1744789241870.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But I want to add this message in Portal view also&lt;/P&gt;&lt;P&gt;Condition : This message should remain display until "CAN PROVISION PROD (u_approved_for_production_provisioning)&lt;SPAN&gt;&amp;nbsp;"box&lt;/SPAN&gt;&amp;nbsp; is checked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can please help me how to achieve this.&lt;/P&gt;&lt;P&gt;Thank you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Wed, 16 Apr 2025 07:46:25 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/i-want-to-add-info-message-in-portal-view/m-p/3239208#M1195869</guid>
      <dc:creator>JVINAY</dc:creator>
      <dc:date>2025-04-16T07:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: I want to add Info message in Portal view.</title>
      <link>https://www.servicenow.com/community/developer-forum/i-want-to-add-info-message-in-portal-view/m-p/3239216#M1195873</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/742577"&gt;@JVINAY&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Do you want to show that for the catalog item?&lt;BR /&gt;Currenlty how it's configured for platform view?&amp;nbsp;&lt;BR /&gt;Regards,&lt;BR /&gt;Siva&lt;/P&gt;</description>
      <pubDate>Wed, 16 Apr 2025 08:00:27 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/i-want-to-add-info-message-in-portal-view/m-p/3239216#M1195873</guid>
      <dc:creator>J Siva</dc:creator>
      <dc:date>2025-04-16T08:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: I want to add Info message in Portal view.</title>
      <link>https://www.servicenow.com/community/developer-forum/i-want-to-add-info-message-in-portal-view/m-p/3239219#M1195875</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/742577"&gt;@JVINAY&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;spUtil.addInfoMessage('message');&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Apr 2025 08:01:52 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/i-want-to-add-info-message-in-portal-view/m-p/3239219#M1195875</guid>
      <dc:creator>Shree_G</dc:creator>
      <dc:date>2025-04-16T08:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: I want to add Info message in Portal view.</title>
      <link>https://www.servicenow.com/community/developer-forum/i-want-to-add-info-message-in-portal-view/m-p/3239244#M1195878</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/662411"&gt;@J Siva&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;how it's configured for platform view?&amp;nbsp; : Currently&amp;nbsp; in record Producer&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Apr 2025 08:11:56 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/i-want-to-add-info-message-in-portal-view/m-p/3239244#M1195878</guid>
      <dc:creator>JVINAY</dc:creator>
      <dc:date>2025-04-16T08:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: I want to add Info message in Portal view.</title>
      <link>https://www.servicenow.com/community/developer-forum/i-want-to-add-info-message-in-portal-view/m-p/3239247#M1195879</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/86085"&gt;@Shree_G&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;for my understanding where to add this, Client script or Business rule. Please elaborate.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Apr 2025 08:14:26 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/i-want-to-add-info-message-in-portal-view/m-p/3239247#M1195879</guid>
      <dc:creator>JVINAY</dc:creator>
      <dc:date>2025-04-16T08:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: I want to add Info message in Portal view.</title>
      <link>https://www.servicenow.com/community/developer-forum/i-want-to-add-info-message-in-portal-view/m-p/3239250#M1195880</link>
      <description>&lt;P&gt;Like in the record producer how it's configured?&lt;BR /&gt;Using Client script or UI policy? I believe it should be UI policy.&lt;BR /&gt;If possible share the UI policy configuration.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Apr 2025 08:16:44 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/i-want-to-add-info-message-in-portal-view/m-p/3239250#M1195880</guid>
      <dc:creator>J Siva</dc:creator>
      <dc:date>2025-04-16T08:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: I want to add Info message in Portal view.</title>
      <link>https://www.servicenow.com/community/developer-forum/i-want-to-add-info-message-in-portal-view/m-p/3239268#M1195881</link>
      <description>&lt;P&gt;I've created one UI policy to show the field message until the user checks the check box variable.&lt;BR /&gt;PFB&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JSiva_0-1744791846579.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/435445i868B7FE9E582269E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JSiva_0-1744791846579.png" alt="JSiva_0-1744791846579.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JSiva_1-1744791873129.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/435446iCE3004D6049E7B98/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JSiva_1-1744791873129.png" alt="JSiva_1-1744791873129.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Output:&lt;BR /&gt;1. When checkbox is unchecked&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JSiva_2-1744791895981.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/435447iB9A450847C28B0B4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JSiva_2-1744791895981.png" alt="JSiva_2-1744791895981.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2.When checkbox is checked&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JSiva_3-1744791954794.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/435449iAFAC009F9E189E40/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JSiva_3-1744791954794.png" alt="JSiva_3-1744791954794.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Apr 2025 08:26:12 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/i-want-to-add-info-message-in-portal-view/m-p/3239268#M1195881</guid>
      <dc:creator>J Siva</dc:creator>
      <dc:date>2025-04-16T08:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: I want to add Info message in Portal view.</title>
      <link>https://www.servicenow.com/community/developer-forum/i-want-to-add-info-message-in-portal-view/m-p/3239289#M1195885</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/742577"&gt;@JVINAY&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;can you share how that message is shown in platform view?&lt;/P&gt;
&lt;P&gt;which script is doing that?&lt;/P&gt;
&lt;P&gt;If some client script then ensure UI Type - ALL so that it works for both&lt;/P&gt;
&lt;P&gt;If my response helped please mark it correct and close the thread so that it benefits future readers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Apr 2025 08:41:11 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/i-want-to-add-info-message-in-portal-view/m-p/3239289#M1195885</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2025-04-16T08:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: I want to add Info message in Portal view.</title>
      <link>https://www.servicenow.com/community/developer-forum/i-want-to-add-info-message-in-portal-view/m-p/3239297#M1195888</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/742577"&gt;@JVINAY&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The spUtil is used to perform common functions in the&amp;nbsp;&lt;SPAN class=""&gt;Service Portal&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;STRONG&gt;widget&lt;/STRONG&gt; client script.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Apr 2025 08:48:08 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/i-want-to-add-info-message-in-portal-view/m-p/3239297#M1195888</guid>
      <dc:creator>Shree_G</dc:creator>
      <dc:date>2025-04-16T08:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: I want to add Info message in Portal view.</title>
      <link>https://www.servicenow.com/community/developer-forum/i-want-to-add-info-message-in-portal-view/m-p/3239310#M1195892</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/662411"&gt;@J Siva&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created UI policy but not working , no info message showing&amp;nbsp; in the Portal view&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JVINAY_0-1744793685020.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/435465i07455839598ACEB4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JVINAY_0-1744793685020.png" alt="JVINAY_0-1744793685020.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JVINAY_1-1744793705005.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/435466i079E9A9C182F0BB9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JVINAY_1-1744793705005.png" alt="JVINAY_1-1744793705005.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Portal view :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JVINAY_2-1744793772866.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/435467iF1C53529E62E091D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JVINAY_2-1744793772866.png" alt="JVINAY_2-1744793772866.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Apr 2025 08:56:44 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/i-want-to-add-info-message-in-portal-view/m-p/3239310#M1195892</guid>
      <dc:creator>JVINAY</dc:creator>
      <dc:date>2025-04-16T08:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: I want to add Info message in Portal view.</title>
      <link>https://www.servicenow.com/community/developer-forum/i-want-to-add-info-message-in-portal-view/m-p/3239323#M1195897</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/742577"&gt;@JVINAY&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the field message will be shown only when the Value of variable is not true&lt;/P&gt;
&lt;P&gt;If my response helped please mark it correct and close the thread so that it benefits future readers.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Apr 2025 09:06:17 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/i-want-to-add-info-message-in-portal-view/m-p/3239323#M1195897</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2025-04-16T09:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: I want to add Info message in Portal view.</title>
      <link>https://www.servicenow.com/community/developer-forum/i-want-to-add-info-message-in-portal-view/m-p/3239325#M1195898</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/742577"&gt;@JVINAY&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please refer below article raised for the same fieldMessage query on Portal. Hope this would resolve your issue.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.servicenow.com/community/itsm-forum/show-field-message-function-in-service-portal/m-p/765509/page/2" target="_blank"&gt;https://www.servicenow.com/community/itsm-forum/show-field-message-function-in-service-portal/m-p/765509/page/2&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Apr 2025 09:07:48 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/i-want-to-add-info-message-in-portal-view/m-p/3239325#M1195898</guid>
      <dc:creator>Shree_G</dc:creator>
      <dc:date>2025-04-16T09:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: I want to add Info message in Portal view.</title>
      <link>https://www.servicenow.com/community/developer-forum/i-want-to-add-info-message-in-portal-view/m-p/3239344#M1195902</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/265966"&gt;@Ankur Bawiskar&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;current script for using Platform view:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JVINAY_0-1744795228842.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/435474i75FED7FB5C1170EE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JVINAY_0-1744795228842.png" alt="JVINAY_0-1744795228842.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JVINAY_1-1744795252517.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/435475i95D52869F11CAF41/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JVINAY_1-1744795252517.png" alt="JVINAY_1-1744795252517.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have changed UI Type - ALL but not working portal view.&lt;/P&gt;&lt;P&gt;Can please look into this and help me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Apr 2025 09:22:15 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/i-want-to-add-info-message-in-portal-view/m-p/3239344#M1195902</guid>
      <dc:creator>JVINAY</dc:creator>
      <dc:date>2025-04-16T09:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: I want to add Info message in Portal view.</title>
      <link>https://www.servicenow.com/community/developer-forum/i-want-to-add-info-message-in-portal-view/m-p/3239352#M1195906</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/742577"&gt;@JVINAY&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it going inside the IF statement?&lt;/P&gt;
&lt;P&gt;are all the values matching correctly? i.e. environment sysId, state 110 and the other false&lt;/P&gt;
&lt;P&gt;If my response helped please mark it correct and close the thread so that it benefits future readers.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Apr 2025 09:31:46 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/i-want-to-add-info-message-in-portal-view/m-p/3239352#M1195906</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2025-04-16T09:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: I want to add Info message in Portal view.</title>
      <link>https://www.servicenow.com/community/developer-forum/i-want-to-add-info-message-in-portal-view/m-p/3239366#M1195911</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/265966"&gt;@Ankur Bawiskar&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I have created new On change Client script.&amp;nbsp; please suggest any changes required&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JVINAY_0-1744796502644.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/435483i787B516A189FA4F7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JVINAY_0-1744796502644.png" alt="JVINAY_0-1744796502644.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JVINAY_1-1744796516444.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/435484i835A42305DCD1543/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JVINAY_1-1744796516444.png" alt="JVINAY_1-1744796516444.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;no luck above code also not working , Please help me the changes.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Apr 2025 09:43:09 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/i-want-to-add-info-message-in-portal-view/m-p/3239366#M1195911</guid>
      <dc:creator>JVINAY</dc:creator>
      <dc:date>2025-04-16T09:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: I want to add Info message in Portal view.</title>
      <link>https://www.servicenow.com/community/developer-forum/i-want-to-add-info-message-in-portal-view/m-p/3239378#M1195916</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/742577"&gt;@JVINAY&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you should compare newValue&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;if(newValue.toString() == 'false')&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;If my response helped please mark it correct and close the thread so that it benefits future readers.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Apr 2025 09:53:12 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/i-want-to-add-info-message-in-portal-view/m-p/3239378#M1195916</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2025-04-16T09:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: I want to add Info message in Portal view.</title>
      <link>https://www.servicenow.com/community/developer-forum/i-want-to-add-info-message-in-portal-view/m-p/3239398#M1195925</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/742577"&gt;@JVINAY&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H3&gt;&lt;STRONG&gt;Step 1: Create a New Widget&lt;/STRONG&gt;&lt;/H3&gt;&lt;OL&gt;&lt;LI&gt;&lt;P class=""&gt;Go to:&lt;BR /&gt;&lt;STRONG&gt;Service Portal &amp;gt; Widgets&lt;/STRONG&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;Click &lt;STRONG&gt;New&lt;/STRONG&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;Give it a name like:&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":memo:"&gt;📝&lt;/span&gt;Provisioning Status Message&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;In the &lt;STRONG&gt;HTML template&lt;/STRONG&gt;, use something like:&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;html&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;Copy&lt;/SPAN&gt;&lt;SPAN class=""&gt;Edit&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&amp;lt;&lt;SPAN class=""&gt;div&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;ng-if&lt;/SPAN&gt;=&lt;SPAN class=""&gt;"!data.approved"&lt;/SPAN&gt; &lt;SPAN class=""&gt;class&lt;/SPAN&gt;=&lt;SPAN class=""&gt;"alert alert-warning"&lt;/SPAN&gt;&amp;gt; &lt;SPAN class=""&gt;&amp;lt;&lt;SPAN class=""&gt;strong&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;gt;Note:&lt;SPAN class=""&gt;&amp;lt;/&lt;SPAN class=""&gt;strong&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;gt; This request is not yet approved for production provisioning. &lt;SPAN class=""&gt;&amp;lt;/&lt;SPAN class=""&gt;div&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;OL&gt;&lt;LI&gt;&lt;P class=""&gt;In the &lt;STRONG&gt;Server Script&lt;/STRONG&gt;, add:&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;javascript&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;Copy&lt;/SPAN&gt;&lt;SPAN class=""&gt;Edit&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;(&lt;SPAN class=""&gt;function&lt;/SPAN&gt;() { &lt;SPAN class=""&gt;var&lt;/SPAN&gt; rec = &lt;SPAN class=""&gt;new&lt;/SPAN&gt; &lt;SPAN class=""&gt;GlideRecord&lt;/SPAN&gt;(&lt;SPAN class=""&gt;'YOUR_TABLE'&lt;/SPAN&gt;); &lt;SPAN class=""&gt;// Replace with your actual table name&lt;/SPAN&gt; &lt;SPAN class=""&gt;if&lt;/SPAN&gt; (rec.&lt;SPAN class=""&gt;get&lt;/SPAN&gt;(input.&lt;SPAN class=""&gt;sys_id&lt;/SPAN&gt;)) { data.&lt;SPAN class=""&gt;approved&lt;/SPAN&gt; = rec.&lt;SPAN class=""&gt;u_approved_for_production_provisioning&lt;/SPAN&gt; == &lt;SPAN class=""&gt;true&lt;/SPAN&gt;; } &lt;SPAN class=""&gt;else&lt;/SPAN&gt; { data.&lt;SPAN class=""&gt;approved&lt;/SPAN&gt; = &lt;SPAN class=""&gt;true&lt;/SPAN&gt;; &lt;SPAN class=""&gt;// Hide if record doesn't exist&lt;/SPAN&gt; } })(); &lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P class=""&gt;In the &lt;STRONG&gt;Client Script&lt;/STRONG&gt;, pass the sys_id:&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;javascript&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;function&lt;/SPAN&gt;(&lt;SPAN class=""&gt;$scope, spUtil&lt;/SPAN&gt;) { $scope.&lt;SPAN class=""&gt;data&lt;/SPAN&gt;.&lt;SPAN class=""&gt;sys_id&lt;/SPAN&gt; = $scope.&lt;SPAN class=""&gt;page&lt;/SPAN&gt;.&lt;SPAN class=""&gt;g_form&lt;/SPAN&gt;.&lt;SPAN class=""&gt;getUniqueValue&lt;/SPAN&gt;(); } &lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;H3&gt;&lt;STRONG&gt;Step 2: Add the Widget to the Form Page&lt;/STRONG&gt;&lt;/H3&gt;&lt;OL&gt;&lt;LI&gt;&lt;P class=""&gt;Go to:&lt;BR /&gt;&lt;STRONG&gt;Service Portal &amp;gt; Pages&lt;/STRONG&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;Search for your &lt;STRONG&gt;record page&lt;/STRONG&gt; (e.g., the one used for the custom table)&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;Add your widget to the top or wherever you want the message to appear&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;HR /&gt;&lt;H3&gt;&lt;STRONG&gt;Step 3: Test It&lt;/STRONG&gt;&lt;/H3&gt;&lt;UL&gt;&lt;LI&gt;&lt;P class=""&gt;Open the form in Service Portal.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;The message should appear if the checkbox is &lt;STRONG&gt;unchecked&lt;/STRONG&gt;, and disappear once it’s &lt;STRONG&gt;checked&lt;/STRONG&gt;.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;Works real-time on load — for dynamic response (live update), you’d need event binding or a g_form script — but this covers most scenarios.&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;Hope the answer has helped you, please mark the answer correct/helpful. Thank you.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Wed, 16 Apr 2025 10:02:57 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/i-want-to-add-info-message-in-portal-view/m-p/3239398#M1195925</guid>
      <dc:creator>Service_RNow</dc:creator>
      <dc:date>2025-04-16T10:02:57Z</dc:date>
    </item>
    <item>
      <title>Re: I want to add Info message in Portal view.</title>
      <link>https://www.servicenow.com/community/developer-forum/i-want-to-add-info-message-in-portal-view/m-p/3239402#M1195926</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/265966"&gt;@Ankur Bawiskar&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I have written below code but not working.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;function&lt;/SPAN&gt;&lt;SPAN&gt; onChange(control, oldValue, newValue, isLoading, isTemplate) {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt; (isLoading || newValue === &lt;/SPAN&gt;&lt;SPAN&gt;''&lt;/SPAN&gt;&lt;SPAN&gt;) {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;//Type appropriate comment here, and begin script below&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt; (newValue.toString() == &lt;/SPAN&gt;&lt;SPAN&gt;'false'&lt;/SPAN&gt;&lt;SPAN&gt;) {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; g_form.showFieldMsgge(&lt;/SPAN&gt;&lt;SPAN&gt;'This request is for production only. &amp;nbsp;In order to proceed with this production-only request, a Cloud Intake admin will need to check the CAN PROVISION PROD box and click save.'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'info'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;true&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;For My requirement&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Can Provision PROD -- False ( Unchecked ) This Info message should appear in the Portal same as Platform view.&lt;/DIV&gt;&lt;DIV&gt;In the platform view&amp;nbsp; Onload client script working well.&lt;/DIV&gt;&lt;DIV&gt;kindly help me above code modification.&lt;/DIV&gt;&lt;DIV&gt;Thank you.&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 16 Apr 2025 10:04:44 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/i-want-to-add-info-message-in-portal-view/m-p/3239402#M1195926</guid>
      <dc:creator>JVINAY</dc:creator>
      <dc:date>2025-04-16T10:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: I want to add Info message in Portal view.</title>
      <link>https://www.servicenow.com/community/developer-forum/i-want-to-add-info-message-in-portal-view/m-p/3239423#M1195933</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/742577"&gt;@JVINAY&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Able to share your onLoad script which works in the platform to help more on the code.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Apr 2025 10:21:05 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/i-want-to-add-info-message-in-portal-view/m-p/3239423#M1195933</guid>
      <dc:creator>Shree_G</dc:creator>
      <dc:date>2025-04-16T10:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: I want to add Info message in Portal view.</title>
      <link>https://www.servicenow.com/community/developer-forum/i-want-to-add-info-message-in-portal-view/m-p/3239427#M1195936</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/86085"&gt;@Shree_G&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Onload Client script Platform view:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;function&lt;/SPAN&gt;&lt;SPAN&gt; onLoad() {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;EnvironmentsValue&lt;/SPAN&gt;&lt;SPAN&gt; = g_form.getValue(&lt;/SPAN&gt;&lt;SPAN&gt;'u_environments'&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;CanProvProd&lt;/SPAN&gt;&lt;SPAN&gt; = g_form.getValue(&lt;/SPAN&gt;&lt;SPAN&gt;'u_approved_for_production_provisioning'&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;StateValue&lt;/SPAN&gt;&lt;SPAN&gt; = g_form.getValue(&lt;/SPAN&gt;&lt;SPAN&gt;'state'&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;EnvironmentsValue&lt;/SPAN&gt;&lt;SPAN&gt; == &lt;/SPAN&gt;&lt;SPAN&gt;'45f9c6b9db9a4f00eed27bedae961953'&lt;/SPAN&gt;&lt;SPAN&gt; &amp;amp;&amp;amp; &lt;/SPAN&gt;&lt;SPAN&gt;CanProvProd&lt;/SPAN&gt;&lt;SPAN&gt; == &lt;/SPAN&gt;&lt;SPAN&gt;'false'&lt;/SPAN&gt;&lt;SPAN&gt; &amp;amp;&amp;amp; &lt;/SPAN&gt;&lt;SPAN&gt;StateValue&lt;/SPAN&gt;&lt;SPAN&gt; !== &lt;/SPAN&gt;&lt;SPAN&gt;'110'&lt;/SPAN&gt;&lt;SPAN&gt;) {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;//If the requested environment is prod only, and the Can Provision Prod checkbox has not been checked, and the state is not prod readiness, display this message&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; g_form.addInfoMessage(&lt;/SPAN&gt;&lt;SPAN&gt;"This request is for production only. &amp;nbsp;In order to proceed with this production-only request, a Cloud Intake admin will need to check the CAN PROVISION PROD box and click save."&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JVINAY_0-1744799170630.png" style="width: 620px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/435505i7FD0F64B1C276FAF/image-dimensions/620x176?v=v2" width="620" height="176" role="button" title="JVINAY_0-1744799170630.png" alt="JVINAY_0-1744799170630.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 16 Apr 2025 10:26:26 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/i-want-to-add-info-message-in-portal-view/m-p/3239427#M1195936</guid>
      <dc:creator>JVINAY</dc:creator>
      <dc:date>2025-04-16T10:26:26Z</dc:date>
    </item>
  </channel>
</rss>

