<?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 submit Client script in Virtual Agent forum</title>
    <link>https://www.servicenow.com/community/virtual-agent-forum/on-submit-client-script/m-p/3154652#M14298</link>
    <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;I am using this on submit client to check the conditions with the concerned script include and to validate and pop up the error message if it matches and abort the submission of request.&lt;BR /&gt;but this is populating the error message but not aborting the action.&lt;BR /&gt;I have tried return false but no use.&lt;BR /&gt;how to solve this?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;function onSubmit() {
    // Retrieve the variable values
    var requestedFor = g_form.getValue('requestor'); // Replace with the actual variable name
    var spaceName = g_form.getValue('u_ref_name_of_qlik_sense_space'); // Replace with the actual variable name
    var accessType = g_form.getValue('u_sb_access_level_required'); // Replace with the actual variable name

    var isValid = false;
    // Call the Script Include to check for duplicates
    var ga = new GlideAjax('RITMValidation');
    ga.addParam('sysparm_name', 'checkDuplicateRITM');
    ga.addParam('sysparm_requested_for', requestedFor);
    ga.addParam('sysparm_space_name', spaceName);
    ga.addParam('sysparm_access_type', accessType);

    ga.getXMLAnswer(function(response) {
        //var answer = response.responseXML.documentElement.getAttribute('answer');
        var answer = response;
        if (answer === 'duplicate') {
            g_form.addErrorMessage('A request with the same details already exists.');
            // return false; // Prevent form submission
            //g_form.submit(false);
        } else {
            isValid = true;
        }

        return isValid;
    });

}&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Jan 2025 12:26:51 GMT</pubDate>
    <dc:creator>Rahul Raja Sami</dc:creator>
    <dc:date>2025-01-21T12:26:51Z</dc:date>
    <item>
      <title>On submit Client script</title>
      <link>https://www.servicenow.com/community/virtual-agent-forum/on-submit-client-script/m-p/3154652#M14298</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;I am using this on submit client to check the conditions with the concerned script include and to validate and pop up the error message if it matches and abort the submission of request.&lt;BR /&gt;but this is populating the error message but not aborting the action.&lt;BR /&gt;I have tried return false but no use.&lt;BR /&gt;how to solve this?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;function onSubmit() {
    // Retrieve the variable values
    var requestedFor = g_form.getValue('requestor'); // Replace with the actual variable name
    var spaceName = g_form.getValue('u_ref_name_of_qlik_sense_space'); // Replace with the actual variable name
    var accessType = g_form.getValue('u_sb_access_level_required'); // Replace with the actual variable name

    var isValid = false;
    // Call the Script Include to check for duplicates
    var ga = new GlideAjax('RITMValidation');
    ga.addParam('sysparm_name', 'checkDuplicateRITM');
    ga.addParam('sysparm_requested_for', requestedFor);
    ga.addParam('sysparm_space_name', spaceName);
    ga.addParam('sysparm_access_type', accessType);

    ga.getXMLAnswer(function(response) {
        //var answer = response.responseXML.documentElement.getAttribute('answer');
        var answer = response;
        if (answer === 'duplicate') {
            g_form.addErrorMessage('A request with the same details already exists.');
            // return false; // Prevent form submission
            //g_form.submit(false);
        } else {
            isValid = true;
        }

        return isValid;
    });

}&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2025 12:26:51 GMT</pubDate>
      <guid>https://www.servicenow.com/community/virtual-agent-forum/on-submit-client-script/m-p/3154652#M14298</guid>
      <dc:creator>Rahul Raja Sami</dc:creator>
      <dc:date>2025-01-21T12:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: On submit Client script</title>
      <link>https://www.servicenow.com/community/virtual-agent-forum/on-submit-client-script/m-p/3154669#M14299</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/198493"&gt;@Rahul Raja Sami&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;this is for catalog form?&lt;/P&gt;
&lt;P&gt;If yes then the async GlideAjax won't work in native or portal as the form will get submitted by the time the script include function performs the validation&lt;/P&gt;
&lt;P&gt;please share some more details&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>Tue, 21 Jan 2025 12:33:09 GMT</pubDate>
      <guid>https://www.servicenow.com/community/virtual-agent-forum/on-submit-client-script/m-p/3154669#M14299</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2025-01-21T12:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: On submit Client script</title>
      <link>https://www.servicenow.com/community/virtual-agent-forum/on-submit-client-script/m-p/3154718#M14303</link>
      <description>&lt;P&gt;yes this is for catalog item request.&lt;BR /&gt;so when a user tries to submit a request by filling some fields, my requirement is to validate those fields with already submitted RITM variable values and display error message mentioning a request has already been submitted for these details.&amp;nbsp;&lt;BR /&gt;So I am using a script include and on submit client script for this, On Submit CS fetches the values of the new request and sends to SC for validation and SC returns whether it is duplicate or not. Then CS pops up an error message and aborts the submission.&amp;nbsp; I have tried the following CS as well&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;function onSubmit() {
    // Retrieve the variable values
    var requestedFor = g_form.getValue('requestor'); // Replace with the actual variable name
    var spaceName = g_form.getValue('u_ref_name_of_qlik_sense_space'); // Replace with the actual variable name
    var accessType = g_form.getValue('u_sb_access_level_required'); // Replace with the actual variable name

    // Call the Script Include to check for duplicates
    var ga = new GlideAjax('RITMValidation');
    ga.addParam('sysparm_name', 'checkDuplicateRITM');
    ga.addParam('sysparm_requested_for', requestedFor);
    ga.addParam('sysparm_space_name', spaceName);
    ga.addParam('sysparm_access_type', accessType);

    ga.getXML(function(response) {
        var answer = response.responseXML.documentElement.getAttribute('answer');
        if (answer === 'duplicate') {
            g_form.addErrorMessage('A request with the same details already exists.');
            return false; // Prevent form submission
           
        } else {
            return true;
        }

    });

}&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 21 Jan 2025 13:08:39 GMT</pubDate>
      <guid>https://www.servicenow.com/community/virtual-agent-forum/on-submit-client-script/m-p/3154718#M14303</guid>
      <dc:creator>Rahul Raja Sami</dc:creator>
      <dc:date>2025-01-21T13:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: On submit Client script</title>
      <link>https://www.servicenow.com/community/virtual-agent-forum/on-submit-client-script/m-p/3154737#M14304</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/198493"&gt;@Rahul Raja Sami&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you are returning nothing from onSubmit function. You only returning value from XMLAnswer but onSubmit function it self is returning nothing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IronPotato_0-1737466964257.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/413786i2E73F89A5FBAB670/image-size/medium?v=v2&amp;amp;px=400" alt="IronPotato_0-1737466964257.png" title="IronPotato_0-1737466964257.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please see updated script:&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;onSubmit&lt;/SPAN&gt;&lt;SPAN&gt;() {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;// Retrieve the variable values&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;requestedFor&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; g_form&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;getValue&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"requestor"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt; &lt;SPAN&gt;// Replace with the actual variable name&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;spaceName&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; g_form&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;getValue&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"u_ref_name_of_qlik_sense_space"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt; &lt;SPAN&gt;// Replace with the actual variable name&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;accessType&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; g_form&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;getValue&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"u_sb_access_level_required"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt; &lt;SPAN&gt;// Replace with the actual variable name&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;isValid&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;// Call the Script Include to check for duplicates&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;ga&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;new&lt;/SPAN&gt; &lt;SPAN&gt;GlideAjax&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"RITMValidation"&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; &lt;/SPAN&gt;&lt;SPAN&gt;ga&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;addParam&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"sysparm_name"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt; &lt;SPAN&gt;"checkDuplicateRITM"&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; &lt;/SPAN&gt;&lt;SPAN&gt;ga&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;addParam&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"sysparm_requested_for"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt; &lt;SPAN&gt;requestedFor&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; &lt;/SPAN&gt;&lt;SPAN&gt;ga&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;addParam&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"sysparm_space_name"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt; &lt;SPAN&gt;spaceName&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; &lt;/SPAN&gt;&lt;SPAN&gt;ga&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;addParam&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"sysparm_access_type"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt; &lt;SPAN&gt;accessType&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;ga&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;getXMLAnswer&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;function&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;response&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 answer = response.responseXML.documentElement.getAttribute('answer');&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;answer&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;response&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;if&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;answer&lt;/SPAN&gt; &lt;SPAN&gt;===&lt;/SPAN&gt; &lt;SPAN&gt;"duplicate"&lt;/SPAN&gt;&lt;SPAN&gt;) {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; g_form&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;addErrorMessage&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"A request with the same details already exists."&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; &lt;/SPAN&gt;&lt;SPAN&gt;isValid&lt;/SPAN&gt; &lt;SPAN&gt;=&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; } &lt;/SPAN&gt;&lt;SPAN&gt;else&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;isValid&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;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; })&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;return&lt;/SPAN&gt; &lt;SPAN&gt;isValid&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;I&gt;If my answer helped you in any way, please then mark it as helpful and correct. This will help others finding a solution.&lt;/I&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 21 Jan 2025 13:44:37 GMT</pubDate>
      <guid>https://www.servicenow.com/community/virtual-agent-forum/on-submit-client-script/m-p/3154737#M14304</guid>
      <dc:creator>tomasscerba</dc:creator>
      <dc:date>2025-01-21T13:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: On submit Client script</title>
      <link>https://www.servicenow.com/community/virtual-agent-forum/on-submit-client-script/m-p/3154797#M14309</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/198493"&gt;@Rahul Raja Sami&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So are you saying it's working as expected?&lt;/P&gt;
&lt;P&gt;if not then check how to handle onSubmit with GlideAjax and perform the validation which will work in both native + portal&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Refer these links for workaround/solution on how to use Synchronous GlideAjax in onSubmit&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://community.servicenow.com/community?id=community_blog&amp;amp;sys_id=dc49feeadbdd7f0c54250b55ca96191d" target="_blank"&gt;How To: Async GlideAjax in an onSubmit script&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://snprotips.com/blog/2018/10/19/synchronous-lite-onsubmit-catalogclient-scripts" target="_blank"&gt;Asynchronous onSubmit Catalog/Client Scripts in ServiceNow&lt;/A&gt;&lt;/SPAN&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>Tue, 21 Jan 2025 14:28:52 GMT</pubDate>
      <guid>https://www.servicenow.com/community/virtual-agent-forum/on-submit-client-script/m-p/3154797#M14309</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2025-01-21T14:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: On submit Client script</title>
      <link>https://www.servicenow.com/community/virtual-agent-forum/on-submit-client-script/m-p/3154838#M14312</link>
      <description>&lt;P&gt;no Ankur, just the error message is populating but not aborting the submission.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2025 14:49:08 GMT</pubDate>
      <guid>https://www.servicenow.com/community/virtual-agent-forum/on-submit-client-script/m-p/3154838#M14312</guid>
      <dc:creator>Rahul Raja Sami</dc:creator>
      <dc:date>2025-01-21T14:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: On submit Client script</title>
      <link>https://www.servicenow.com/community/virtual-agent-forum/on-submit-client-script/m-p/3154852#M14314</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/198493"&gt;@Rahul Raja Sami&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;that's what I mentioned the form will get submitted and won't wait for the script include function&lt;/P&gt;
&lt;P&gt;check the links which I shared above&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>Tue, 21 Jan 2025 14:58:55 GMT</pubDate>
      <guid>https://www.servicenow.com/community/virtual-agent-forum/on-submit-client-script/m-p/3154852#M14314</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2025-01-21T14:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: On submit Client script</title>
      <link>https://www.servicenow.com/community/virtual-agent-forum/on-submit-client-script/m-p/3155354#M14328</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/198493"&gt;@Rahul Raja Sami&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope you are doing good.&lt;/P&gt;
&lt;P&gt;Did my reply answer your question?&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, 22 Jan 2025 02:56:04 GMT</pubDate>
      <guid>https://www.servicenow.com/community/virtual-agent-forum/on-submit-client-script/m-p/3155354#M14328</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2025-01-22T02:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: On submit Client script</title>
      <link>https://www.servicenow.com/community/virtual-agent-forum/on-submit-client-script/m-p/3155878#M14353</link>
      <description>&lt;P&gt;this is not working just displaying the error message but not aborting the submission.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2025 10:37:51 GMT</pubDate>
      <guid>https://www.servicenow.com/community/virtual-agent-forum/on-submit-client-script/m-p/3155878#M14353</guid>
      <dc:creator>Rahul Raja Sami</dc:creator>
      <dc:date>2025-01-22T10:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: On submit Client script</title>
      <link>https://www.servicenow.com/community/virtual-agent-forum/on-submit-client-script/m-p/3155888#M14354</link>
      <description>&lt;P&gt;Hi Ankur, yes it worked. Thanks for the solution.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2025 10:43:41 GMT</pubDate>
      <guid>https://www.servicenow.com/community/virtual-agent-forum/on-submit-client-script/m-p/3155888#M14354</guid>
      <dc:creator>Rahul Raja Sami</dc:creator>
      <dc:date>2025-01-22T10:43:41Z</dc:date>
    </item>
  </channel>
</rss>

