<?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 On change client script not to run once template applied in Community Central forum</title>
    <link>https://www.servicenow.com/community/community-central-forum/on-change-client-script-not-to-run-once-template-applied/m-p/3241978#M2844</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I created on change client script to populate assignment group when subcategory changes in interaction table.but when i applied template then also on change client script overriding.&lt;/P&gt;&lt;P&gt;if (isTemplate) {&lt;BR /&gt;return;&lt;BR /&gt;} else {&lt;BR /&gt;code;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;Please guide here to not to run when template is applied and when subacategory manually changes then on change client script runs.&lt;/P&gt;</description>
    <pubDate>Fri, 18 Apr 2025 18:19:48 GMT</pubDate>
    <dc:creator>FareedaS</dc:creator>
    <dc:date>2025-04-18T18:19:48Z</dc:date>
    <item>
      <title>On change client script not to run once template applied</title>
      <link>https://www.servicenow.com/community/community-central-forum/on-change-client-script-not-to-run-once-template-applied/m-p/3241978#M2844</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I created on change client script to populate assignment group when subcategory changes in interaction table.but when i applied template then also on change client script overriding.&lt;/P&gt;&lt;P&gt;if (isTemplate) {&lt;BR /&gt;return;&lt;BR /&gt;} else {&lt;BR /&gt;code;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;Please guide here to not to run when template is applied and when subacategory manually changes then on change client script runs.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Apr 2025 18:19:48 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/on-change-client-script-not-to-run-once-template-applied/m-p/3241978#M2844</guid>
      <dc:creator>FareedaS</dc:creator>
      <dc:date>2025-04-18T18:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: On change client script not to run once template applied</title>
      <link>https://www.servicenow.com/community/community-central-forum/on-change-client-script-not-to-run-once-template-applied/m-p/3242136#M2845</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/489406"&gt;@FareedaS&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Try below script.&lt;BR /&gt;The assignment group value remains unchanged when the subcategory value is preset by the template.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;function onChange(control, oldValue, newValue, isLoading, isTemplate) {
    if (isLoading || newValue === '') {
        return;
    }
    if (!isTemplate) {
        g_form.setValue('assignment_group', '&amp;lt;GROUP SYS ID&amp;gt;');
    }
}&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JSiva_0-1745044725642.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/436348i42B5700AB22AD32D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JSiva_0-1745044725642.png" alt="JSiva_0-1745044725642.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Siva&lt;/P&gt;</description>
      <pubDate>Sat, 19 Apr 2025 06:41:29 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/on-change-client-script-not-to-run-once-template-applied/m-p/3242136#M2845</guid>
      <dc:creator>J Siva</dc:creator>
      <dc:date>2025-04-19T06:41:29Z</dc:date>
    </item>
  </channel>
</rss>

