<?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: what is the difference between onload client script and onchange client script. in Community Central forum</title>
    <link>https://www.servicenow.com/community/community-central-forum/what-is-the-difference-between-onload-client-script-and-onchange/m-p/3181677#M2248</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/861295"&gt;@ImmadisettyP&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;onLoad means the Client Script runs when the form or page is loaded&lt;BR /&gt;onChange means the Client Script runs when something specific gets changed AND also when the form or page loads&lt;BR /&gt;Additional parameter for onChange client script is : isLoading&amp;nbsp;- identifies whether the form is loading and also indicates that no fields have changed value. This parameter can only be true when the form is loading and no values have changed.&lt;/P&gt;&lt;P&gt;To know more about client scripts please go through -&amp;nbsp;&lt;A href="https://www.servicenow.com/docs/bundle/yokohama-api-reference/page/script/client-scripts/concept/client-scripts.html" target="_blank"&gt;https://www.servicenow.com/docs/bundle/yokohama-api-reference/page/script/client-scripts/concept/client-scripts.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If my answer helps you please mark it as helpful/correct.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Debasis&lt;/P&gt;</description>
    <pubDate>Wed, 19 Feb 2025 01:56:42 GMT</pubDate>
    <dc:creator>Debasis Pati</dc:creator>
    <dc:date>2025-02-19T01:56:42Z</dc:date>
    <item>
      <title>what is the difference between onload client script and onchange client script.</title>
      <link>https://www.servicenow.com/community/community-central-forum/what-is-the-difference-between-onload-client-script-and-onchange/m-p/3181471#M2244</link>
      <description />
      <pubDate>Tue, 18 Feb 2025 19:03:28 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/what-is-the-difference-between-onload-client-script-and-onchange/m-p/3181471#M2244</guid>
      <dc:creator>ImmadisettyP</dc:creator>
      <dc:date>2025-02-18T19:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: what is the difference between onload client script and onchange client script.</title>
      <link>https://www.servicenow.com/community/community-central-forum/what-is-the-difference-between-onload-client-script-and-onchange/m-p/3181637#M2246</link>
      <description>&lt;P&gt;If you're new to ServiceNow, I recommend reviewing the content on the developer website.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developer.servicenow.com/dev.do#!/learn/learning-plans/xanadu/new_to_servicenow/app_store_learnv2_scripting_xanadu_client_script_types" target="_blank"&gt;https://developer.servicenow.com/dev.do#!/learn/learning-plans/xanadu/new_to_servicenow/app_store_learnv2_scripting_xanadu_client_script_types&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 23:25:16 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/what-is-the-difference-between-onload-client-script-and-onchange/m-p/3181637#M2246</guid>
      <dc:creator>Kieran Anson</dc:creator>
      <dc:date>2025-02-18T23:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: what is the difference between onload client script and onchange client script.</title>
      <link>https://www.servicenow.com/community/community-central-forum/what-is-the-difference-between-onload-client-script-and-onchange/m-p/3181641#M2247</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/861295"&gt;@ImmadisettyP&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Refer the belo , also check the developer portal link shared by&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/431446"&gt;@Kieran Anson&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In HTML, "onload" is an &lt;STRONG&gt;event&lt;/STRONG&gt; that fires when an entire webpage has finished loading, including all its elements like images and scripts, while "onchange" is an event that occurs when the &lt;FONT color="#0000FF"&gt;value&lt;/FONT&gt; of a specific HTML element (like a text input or dropdown menu) is changed by the user&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;&lt;EM&gt;onChange&lt;/EM&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;- Client Scripts execute script logic when a &lt;STRONG&gt;particular &lt;FONT color="#0000FF"&gt;field's&lt;/FONT&gt; value changes&lt;/STRONG&gt;.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;&lt;EM&gt;onLoad&lt;/EM&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&amp;nbsp;- Client Scripts execute script logic when &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;forms&lt;/STRONG&gt;&lt;/FONT&gt; are loaded.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;-Thanks,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;AshishKM&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 23:37:11 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/what-is-the-difference-between-onload-client-script-and-onchange/m-p/3181641#M2247</guid>
      <dc:creator>AshishKM</dc:creator>
      <dc:date>2025-02-18T23:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: what is the difference between onload client script and onchange client script.</title>
      <link>https://www.servicenow.com/community/community-central-forum/what-is-the-difference-between-onload-client-script-and-onchange/m-p/3181677#M2248</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/861295"&gt;@ImmadisettyP&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;onLoad means the Client Script runs when the form or page is loaded&lt;BR /&gt;onChange means the Client Script runs when something specific gets changed AND also when the form or page loads&lt;BR /&gt;Additional parameter for onChange client script is : isLoading&amp;nbsp;- identifies whether the form is loading and also indicates that no fields have changed value. This parameter can only be true when the form is loading and no values have changed.&lt;/P&gt;&lt;P&gt;To know more about client scripts please go through -&amp;nbsp;&lt;A href="https://www.servicenow.com/docs/bundle/yokohama-api-reference/page/script/client-scripts/concept/client-scripts.html" target="_blank"&gt;https://www.servicenow.com/docs/bundle/yokohama-api-reference/page/script/client-scripts/concept/client-scripts.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If my answer helps you please mark it as helpful/correct.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Debasis&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2025 01:56:42 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/what-is-the-difference-between-onload-client-script-and-onchange/m-p/3181677#M2248</guid>
      <dc:creator>Debasis Pati</dc:creator>
      <dc:date>2025-02-19T01:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: what is the difference between onload client script and onchange client script.</title>
      <link>https://www.servicenow.com/community/community-central-forum/what-is-the-difference-between-onload-client-script-and-onchange/m-p/3181686#M2249</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/861295"&gt;@ImmadisettyP&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;onLoad means the Client Script runs when the form or page is loaded&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;onChange means the Client Script runs when something specific gets changed AND also when the form or page loads&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Additional parameter for onChange client script is : isLoading&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;- identifies whether the form is loading and also indicates that no fields have changed value. This parameter can only be true when the form is loading and no values have changed.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2025 02:24:39 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/what-is-the-difference-between-onload-client-script-and-onchange/m-p/3181686#M2249</guid>
      <dc:creator>dgarad</dc:creator>
      <dc:date>2025-02-19T02:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: what is the difference between onload client script and onchange client script.</title>
      <link>https://www.servicenow.com/community/community-central-forum/what-is-the-difference-between-onload-client-script-and-onchange/m-p/3181702#M2250</link>
      <description>&lt;OL&gt;&lt;LI&gt;Both onLoad&amp;nbsp;and onChange&amp;nbsp;client scripts are used to run JavaScript code on the client-side (i.e., in the user's browser,client side), but they have different purposes and triggering conditions.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;onLoad Client Script&lt;/STRONG&gt;:&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Trigger condition&lt;/STRONG&gt;: Runs when a record form is loaded (opened or refreshed).&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Purpose&lt;/STRONG&gt;: It’s typically used to manipulate the form or perform actions when the form first appears to the user. For example, setting default values or hiding/showing fields.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Example&lt;/STRONG&gt;: Hiding a field when the form loads.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;onChange Client Script&lt;/STRONG&gt;:&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Trigger condition&lt;/STRONG&gt;: Runs when the value of a specific field on the form changes.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Purpose&lt;/STRONG&gt;: It’s used to perform actions based on changes to a particular field, such as validating input or triggering other changes on the form when the field value is modified.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Example&lt;/STRONG&gt;: Displaying a message or updating other fields when a user selects a value in a dropdown field.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;I&gt;Please mark this response as &lt;STRONG&gt;correct&lt;/STRONG&gt; and &lt;STRONG&gt;helpful&lt;/STRONG&gt; if it helps you can mark more that one reply as accepted solution&lt;/I&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2025 03:05:35 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/what-is-the-difference-between-onload-client-script-and-onchange/m-p/3181702#M2250</guid>
      <dc:creator>Raahul2</dc:creator>
      <dc:date>2025-02-19T03:05:35Z</dc:date>
    </item>
  </channel>
</rss>

