<?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: Prevent &amp;quot;Leave Site? Changes you made may not be saved.&amp;quot; popup while submitting the Catalog form in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/prevent-quot-leave-site-changes-you-made-may-not-be-saved-quot/m-p/1551078#M208004</link>
    <description>&lt;P&gt;You can also turn it off for all the websites, this is a browser setting and not an exclusive ServiceNow setting -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Close&lt;/STRONG&gt;&amp;nbsp;Internet Explorer browser&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Right-click&lt;/STRONG&gt;&amp;nbsp;on&amp;nbsp;&lt;STRONG&gt;Start&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Left-click&lt;/STRONG&gt;&amp;nbsp;on&amp;nbsp;&lt;STRONG&gt;Run&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;In the&amp;nbsp;&lt;STRONG&gt;Run dialog&lt;/STRONG&gt;&amp;nbsp;type&amp;nbsp;&lt;STRONG&gt;&lt;SPAN class="skimlinks-unlinked"&gt;INETCPL.CPL&lt;/SPAN&gt;&lt;/STRONG&gt;&amp;nbsp;then click&amp;nbsp;&lt;STRONG&gt;OK&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;This will open your&amp;nbsp;&lt;STRONG&gt;Internet Properties&lt;/STRONG&gt;&amp;nbsp;window. In this window&amp;nbsp;&lt;STRONG&gt;left-click&lt;/STRONG&gt;&amp;nbsp;the&amp;nbsp;&lt;STRONG&gt;Security tab&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Next,&amp;nbsp;&lt;STRONG&gt;Left-click&lt;/STRONG&gt;&amp;nbsp;on the&amp;nbsp;&lt;STRONG&gt;Custom level&lt;/STRONG&gt;&amp;nbsp;button&lt;/LI&gt;&lt;LI&gt;This will open the&amp;nbsp;&lt;STRONG&gt;Security Settings - Internet Zone&lt;/STRONG&gt;&amp;nbsp;window.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;In this window&amp;nbsp;&lt;STRONG&gt;scroll down&lt;/STRONG&gt;&amp;nbsp;towards bottom and locate&amp;nbsp;&lt;STRONG&gt;Active scripting&lt;BR /&gt;&lt;BR /&gt;Check&lt;/STRONG&gt;&amp;nbsp;the&amp;nbsp;&lt;STRONG&gt;Disable &lt;/STRONG&gt;option&lt;/LI&gt;&lt;/UL&gt;</description>
    <pubDate>Wed, 26 Jun 2019 17:44:48 GMT</pubDate>
    <dc:creator>AmanG</dc:creator>
    <dc:date>2019-06-26T17:44:48Z</dc:date>
    <item>
      <title>Prevent "Leave Site? Changes you made may not be saved." popup while submitting the Catalog form</title>
      <link>https://www.servicenow.com/community/developer-forum/prevent-quot-leave-site-changes-you-made-may-not-be-saved-quot/m-p/1551072#M207998</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;
&lt;P&gt;We have recently moved to kingston. We have catalog form that submits data to a table. We are submitting the data to a table and then redirecting the user using "window.location.href". Before we upgrade to kingston, it was submitting the data to table and redirecting the user to the URL. But now after upgrade, when we click on submit button, the below popup is being displayed.&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/168446i10D2ED3656C067EC/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;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The above popup is from IE. In chrome,&amp;nbsp;a popoup with the text ""Leave Site? Changes you made may not be saved.".&amp;nbsp; Until, we click on "Leave this page", the redirection is not happening. But the form data has already been saved to table. If i can bypass the above popup, i can redirect the user just by click on submit button. Can somebody please help us on how to bypass these popups and redirect the user to the URL specified.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Venu&lt;/P&gt;</description>
      <pubDate>Fri, 31 Aug 2018 11:04:38 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/prevent-quot-leave-site-changes-you-made-may-not-be-saved-quot/m-p/1551072#M207998</guid>
      <dc:creator>vallamreddyvenu</dc:creator>
      <dc:date>2018-08-31T11:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent "Leave Site? Changes you made may not be saved." popup while submitting the Catalog form</title>
      <link>https://www.servicenow.com/community/developer-forum/prevent-quot-leave-site-changes-you-made-may-not-be-saved-quot/m-p/1551073#M207999</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Can you post your code here where you have the window.location.href redirect going on?&lt;/P&gt;</description>
      <pubDate>Fri, 31 Aug 2018 12:45:59 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/prevent-quot-leave-site-changes-you-made-may-not-be-saved-quot/m-p/1551073#M207999</guid>
      <dc:creator>Allen Andreas</dc:creator>
      <dc:date>2018-08-31T12:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent "Leave Site? Changes you made may not be saved." popup while submitting the Catalog form</title>
      <link>https://www.servicenow.com/community/developer-forum/prevent-quot-leave-site-changes-you-made-may-not-be-saved-quot/m-p/1551074#M208000</link>
      <description>&lt;P&gt;Hi Allen,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below is my code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="language-markup"&gt;&lt;CODE&gt; 

var spr = new GlideAjax('SCRefQualifier'); spr.addParam('sysparm_name','saveParentRequest'); 
spr.addParam('sysparm_RequestedFor', u_RequestedFor); spr.addParam('sysparm_RequestedDate', u_RequestedDate); 
spr.addParam('sysparm_Comments', u_Comments); 
spr.addParam('sysparm_Description', requestDescription); 
spr.addParam('sysparm_Company', u_Company); 
spr.addParam('sysparm_Environment', u_Environment); 
spr.addParam('sysparm_Urgency', u_Urgency); 
spr.getXMLWait(); 
var srrequestnumber = spr.getAnswer(); 
if(srrequestnumber ) 
{ alert("Thank you for submitting your request , a release coordinator will contact you shortly to coordinate your request. A request with the number " + srnumber + " has been submitted successfully"); 
window.location.href = "home.do"; } 
else 
{ 
alert("There is problem while submitting the request. Please contact the administrator"); }&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Aug 2018 15:00:52 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/prevent-quot-leave-site-changes-you-made-may-not-be-saved-quot/m-p/1551074#M208000</guid>
      <dc:creator>vallamreddyvenu</dc:creator>
      <dc:date>2018-08-31T15:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent "Leave Site? Changes you made may not be saved." popup while submitting the Catalog form</title>
      <link>https://www.servicenow.com/community/developer-forum/prevent-quot-leave-site-changes-you-made-may-not-be-saved-quot/m-p/1551075#M208001</link>
      <description>&lt;P&gt;Hi Venu - did you find any solution for this?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2019 15:34:59 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/prevent-quot-leave-site-changes-you-made-may-not-be-saved-quot/m-p/1551075#M208001</guid>
      <dc:creator>Paul125</dc:creator>
      <dc:date>2019-06-26T15:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent "Leave Site? Changes you made may not be saved." popup while submitting the Catalog form</title>
      <link>https://www.servicenow.com/community/developer-forum/prevent-quot-leave-site-changes-you-made-may-not-be-saved-quot/m-p/1551076#M208002</link>
      <description>&lt;P&gt;Yes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;g_form.modified = false;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This did the trick.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2019 16:53:56 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/prevent-quot-leave-site-changes-you-made-may-not-be-saved-quot/m-p/1551076#M208002</guid>
      <dc:creator>vallamreddyvenu</dc:creator>
      <dc:date>2019-06-26T16:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent "Leave Site? Changes you made may not be saved." popup while submitting the Catalog form</title>
      <link>https://www.servicenow.com/community/developer-forum/prevent-quot-leave-site-changes-you-made-may-not-be-saved-quot/m-p/1551077#M208003</link>
      <description>&lt;P&gt;You can also try this in your script.&lt;/P&gt;
&lt;PRE class="ng-scope language-javascript"&gt;&lt;CODE&gt;window.onbeforeunload = function () {
  // blank function do nothing
}&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 26 Jun 2019 16:56:14 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/prevent-quot-leave-site-changes-you-made-may-not-be-saved-quot/m-p/1551077#M208003</guid>
      <dc:creator>Elijah Aromola</dc:creator>
      <dc:date>2019-06-26T16:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent "Leave Site? Changes you made may not be saved." popup while submitting the Catalog form</title>
      <link>https://www.servicenow.com/community/developer-forum/prevent-quot-leave-site-changes-you-made-may-not-be-saved-quot/m-p/1551078#M208004</link>
      <description>&lt;P&gt;You can also turn it off for all the websites, this is a browser setting and not an exclusive ServiceNow setting -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Close&lt;/STRONG&gt;&amp;nbsp;Internet Explorer browser&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Right-click&lt;/STRONG&gt;&amp;nbsp;on&amp;nbsp;&lt;STRONG&gt;Start&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Left-click&lt;/STRONG&gt;&amp;nbsp;on&amp;nbsp;&lt;STRONG&gt;Run&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;In the&amp;nbsp;&lt;STRONG&gt;Run dialog&lt;/STRONG&gt;&amp;nbsp;type&amp;nbsp;&lt;STRONG&gt;&lt;SPAN class="skimlinks-unlinked"&gt;INETCPL.CPL&lt;/SPAN&gt;&lt;/STRONG&gt;&amp;nbsp;then click&amp;nbsp;&lt;STRONG&gt;OK&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;This will open your&amp;nbsp;&lt;STRONG&gt;Internet Properties&lt;/STRONG&gt;&amp;nbsp;window. In this window&amp;nbsp;&lt;STRONG&gt;left-click&lt;/STRONG&gt;&amp;nbsp;the&amp;nbsp;&lt;STRONG&gt;Security tab&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Next,&amp;nbsp;&lt;STRONG&gt;Left-click&lt;/STRONG&gt;&amp;nbsp;on the&amp;nbsp;&lt;STRONG&gt;Custom level&lt;/STRONG&gt;&amp;nbsp;button&lt;/LI&gt;&lt;LI&gt;This will open the&amp;nbsp;&lt;STRONG&gt;Security Settings - Internet Zone&lt;/STRONG&gt;&amp;nbsp;window.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;In this window&amp;nbsp;&lt;STRONG&gt;scroll down&lt;/STRONG&gt;&amp;nbsp;towards bottom and locate&amp;nbsp;&lt;STRONG&gt;Active scripting&lt;BR /&gt;&lt;BR /&gt;Check&lt;/STRONG&gt;&amp;nbsp;the&amp;nbsp;&lt;STRONG&gt;Disable &lt;/STRONG&gt;option&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Wed, 26 Jun 2019 17:44:48 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/prevent-quot-leave-site-changes-you-made-may-not-be-saved-quot/m-p/1551078#M208004</guid>
      <dc:creator>AmanG</dc:creator>
      <dc:date>2019-06-26T17:44:48Z</dc:date>
    </item>
  </channel>
</rss>

