<?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 VIP Flag Visibility  in ITSM forum</title>
    <link>https://www.servicenow.com/community/itsm-forum/vip-flag-visibility/m-p/579309#M151088</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Currently the VIP flag only shows when the VIP is in the “Caller” field, but often raised on behalf of a VIP, so needs to show as a flag on both “Caller” and “On Behalf Of”.&lt;/P&gt;
&lt;P&gt;I have checked client script Highlight VIP caller and created similar one for on behalf of with some changes in it. But it is not working . Could you please help here with suggestions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;function onChange(control, oldValue, newValue, isLoading) {&lt;BR /&gt; var callerLabel = $('label.incident.u_on_behalf_of');&lt;BR /&gt; var callerField = $('sys_display.incident.u_on_behalf_of');&lt;BR /&gt; if (!callerLabel || !callerField)&lt;BR /&gt; return;&lt;/P&gt;
&lt;P&gt;if (!newValue) {&lt;BR /&gt; callerLabel.setStyle({&lt;BR /&gt; backgroundImage: ""&lt;BR /&gt; });&lt;BR /&gt; callerField.setStyle({&lt;BR /&gt; color: ""&lt;BR /&gt; });&lt;BR /&gt; return;&lt;BR /&gt; }&lt;BR /&gt; g_form.getReference('u_on_behalf_of', vipCallerCallback);&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;function vipCallerCallback(caller) {&lt;BR /&gt; var callerLabel = $('label.incident.u_on_behalf_of').down('label');&lt;BR /&gt; var callerField = $('sys_display.incident.u_on_behalf_of');&lt;BR /&gt; if (!callerLabel || !callerField)&lt;BR /&gt; return;&lt;/P&gt;
&lt;P&gt;//check for VIP status&lt;BR /&gt; if (caller.vip == 'true') {&lt;BR /&gt; &lt;BR /&gt; var bgPosition = "95% 55%";&lt;BR /&gt; if (document.documentElement.getAttribute('data-doctype') == 'true')&lt;BR /&gt; bgPosition = "5% 45%";&lt;/P&gt;
&lt;P&gt;callerLabel.setStyle({&lt;BR /&gt; backgroundImage: "url(images/icons/vip.gif)",&lt;BR /&gt; backgroundRepeat: "no-repeat",&lt;BR /&gt; backgroundPosition: bgPosition,&lt;BR /&gt; paddingLeft: '30px'&lt;BR /&gt; });&lt;BR /&gt; callerField.setStyle({&lt;BR /&gt; color: "red"&lt;BR /&gt; });&lt;BR /&gt; } else {&lt;BR /&gt; callerLabel.setStyle({&lt;BR /&gt; backgroundImage: ""&lt;BR /&gt; });&lt;BR /&gt; callerField.setStyle({&lt;BR /&gt; color: ""&lt;BR /&gt; });&lt;BR /&gt; }&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Madhuri&lt;/P&gt;</description>
    <pubDate>Mon, 15 Feb 2021 13:08:39 GMT</pubDate>
    <dc:creator>madhuri229</dc:creator>
    <dc:date>2021-02-15T13:08:39Z</dc:date>
    <item>
      <title>VIP Flag Visibility</title>
      <link>https://www.servicenow.com/community/itsm-forum/vip-flag-visibility/m-p/579309#M151088</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Currently the VIP flag only shows when the VIP is in the “Caller” field, but often raised on behalf of a VIP, so needs to show as a flag on both “Caller” and “On Behalf Of”.&lt;/P&gt;
&lt;P&gt;I have checked client script Highlight VIP caller and created similar one for on behalf of with some changes in it. But it is not working . Could you please help here with suggestions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;function onChange(control, oldValue, newValue, isLoading) {&lt;BR /&gt; var callerLabel = $('label.incident.u_on_behalf_of');&lt;BR /&gt; var callerField = $('sys_display.incident.u_on_behalf_of');&lt;BR /&gt; if (!callerLabel || !callerField)&lt;BR /&gt; return;&lt;/P&gt;
&lt;P&gt;if (!newValue) {&lt;BR /&gt; callerLabel.setStyle({&lt;BR /&gt; backgroundImage: ""&lt;BR /&gt; });&lt;BR /&gt; callerField.setStyle({&lt;BR /&gt; color: ""&lt;BR /&gt; });&lt;BR /&gt; return;&lt;BR /&gt; }&lt;BR /&gt; g_form.getReference('u_on_behalf_of', vipCallerCallback);&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;function vipCallerCallback(caller) {&lt;BR /&gt; var callerLabel = $('label.incident.u_on_behalf_of').down('label');&lt;BR /&gt; var callerField = $('sys_display.incident.u_on_behalf_of');&lt;BR /&gt; if (!callerLabel || !callerField)&lt;BR /&gt; return;&lt;/P&gt;
&lt;P&gt;//check for VIP status&lt;BR /&gt; if (caller.vip == 'true') {&lt;BR /&gt; &lt;BR /&gt; var bgPosition = "95% 55%";&lt;BR /&gt; if (document.documentElement.getAttribute('data-doctype') == 'true')&lt;BR /&gt; bgPosition = "5% 45%";&lt;/P&gt;
&lt;P&gt;callerLabel.setStyle({&lt;BR /&gt; backgroundImage: "url(images/icons/vip.gif)",&lt;BR /&gt; backgroundRepeat: "no-repeat",&lt;BR /&gt; backgroundPosition: bgPosition,&lt;BR /&gt; paddingLeft: '30px'&lt;BR /&gt; });&lt;BR /&gt; callerField.setStyle({&lt;BR /&gt; color: "red"&lt;BR /&gt; });&lt;BR /&gt; } else {&lt;BR /&gt; callerLabel.setStyle({&lt;BR /&gt; backgroundImage: ""&lt;BR /&gt; });&lt;BR /&gt; callerField.setStyle({&lt;BR /&gt; color: ""&lt;BR /&gt; });&lt;BR /&gt; }&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Madhuri&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 13:08:39 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/vip-flag-visibility/m-p/579309#M151088</guid>
      <dc:creator>madhuri229</dc:creator>
      <dc:date>2021-02-15T13:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: VIP Flag Visibility</title>
      <link>https://www.servicenow.com/community/itsm-forum/vip-flag-visibility/m-p/579310#M151089</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Did you set Isolate Script field as false for your new client script?&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/36558iFF7A2E132A6C14A9/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;Regards&lt;BR /&gt;Ankur&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 13:19:55 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/vip-flag-visibility/m-p/579310#M151089</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2021-02-15T13:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: VIP Flag Visibility</title>
      <link>https://www.servicenow.com/community/itsm-forum/vip-flag-visibility/m-p/579311#M151090</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Currently it is showing as true. What does this mean?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 14:14:45 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/vip-flag-visibility/m-p/579311#M151090</guid>
      <dc:creator>madhuri229</dc:creator>
      <dc:date>2021-02-15T14:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: VIP Flag Visibility</title>
      <link>https://www.servicenow.com/community/itsm-forum/vip-flag-visibility/m-p/579312#M151091</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;When it is false it would allow DOM manipulation&lt;/P&gt;
&lt;P&gt;the client script uses DOM manipulation to show the color etc&lt;/P&gt;
&lt;P&gt;$ -&amp;gt; means DOM is used&lt;/P&gt;
&lt;P&gt;Try to set it false and then re-test&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="ng-scope"&gt; var callerLabel = &lt;STRONG&gt;$&lt;/STRONG&gt;('label.incident.u_on_behalf_of');&lt;BR /&gt; var callerField = &lt;STRONG&gt;$&lt;/STRONG&gt;('sys_display.incident.u_on_behalf_of');&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Regards&lt;BR /&gt;Ankur&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 14:26:59 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/vip-flag-visibility/m-p/579312#M151091</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2021-02-15T14:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: VIP Flag Visibility</title>
      <link>https://www.servicenow.com/community/itsm-forum/vip-flag-visibility/m-p/579313#M151092</link>
      <description>&lt;P&gt;Hi Ankur,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have made it false. Still it is not working . Not highlighting VIP user for on behalf of field. Any other suggetions please.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 15:00:18 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/vip-flag-visibility/m-p/579313#M151092</guid>
      <dc:creator>madhuri229</dc:creator>
      <dc:date>2021-02-16T15:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: VIP Flag Visibility</title>
      <link>https://www.servicenow.com/community/itsm-forum/vip-flag-visibility/m-p/579314#M151093</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;you want to highlight on behalf of field when caller changes right?&lt;/P&gt;
&lt;P&gt;Regards&lt;BR /&gt;Ankur&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 16:18:29 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/vip-flag-visibility/m-p/579314#M151093</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2021-02-16T16:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: VIP Flag Visibility</title>
      <link>https://www.servicenow.com/community/itsm-forum/vip-flag-visibility/m-p/579315#M151094</link>
      <description>&lt;P&gt;Yes Ankur, same as caller field highlights for VIP User.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 17:36:42 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/vip-flag-visibility/m-p/579315#M151094</guid>
      <dc:creator>madhuri229</dc:creator>
      <dc:date>2021-02-16T17:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: VIP Flag Visibility</title>
      <link>https://www.servicenow.com/community/itsm-forum/vip-flag-visibility/m-p/579316#M151095</link>
      <description>&lt;P&gt;&lt;SN-MENTION class="sn-mention" table="live_profile" sysid="fc3f8a65db181fc09c9ffb651f96196f"&gt;@madhuri229@gmail&lt;/SN-MENTION&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did you check any browser console error is coming?&lt;/P&gt;
&lt;P&gt;Also did you check by adding alert etc in client script&lt;/P&gt;
&lt;P&gt;Regards&lt;BR /&gt;Ankur&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 04:37:46 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/vip-flag-visibility/m-p/579316#M151095</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2021-02-17T04:37:46Z</dc:date>
    </item>
  </channel>
</rss>

