<?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 Prevent 'Changes Have Not Been Saved' Warning on UI Page in Community Central forum</title>
    <link>https://www.servicenow.com/community/community-central-forum/prevent-changes-have-not-been-saved-warning-on-ui-page/m-p/3299094#M3501</link>
    <description>&lt;P&gt;Good morning. I have designed a UI page that contains a slushbucket. However, when selections are made, moving items from the left side to the right side, a warning is presented to the user upon clicking Submit (#approve) on the UI page. It is confusing to users as they believe they are about to lose data, when they are not.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Can anyone provide assistance on preventing this warning message from displaying when the ui page/form is submitted?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've searched for methods of preventing the unsaved changes warning, and,&lt;/P&gt;&lt;P&gt;added functionality to the script to clear the right side of the slushbucket prior to submitting the form with no success.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This button triggers form submission.&lt;/P&gt;&lt;P&gt;HTML:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;footer class="modal-footer flex"&amp;gt;
     &amp;lt;button id="approve" type="submit" class="btn btn-primary"&amp;gt;Submit Acknowledgement&amp;lt;/button&amp;gt;
&amp;lt;/footer&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;Client Script:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;    $j('#approve').on('click', function() {
        // Prevent the unsaved changes warning
        top.window.onbeforeunload = null;

        //Return the slushbucket to its orginal state
        var rightSelect = sb.getRightSelect();
        $j(rightSelect).find('option').remove();

        form.submit();
    });&lt;/LI-CODE&gt;&lt;P&gt;Any assistance is greatly appreciated and thanks in advance.&lt;/P&gt;</description>
    <pubDate>Tue, 24 Jun 2025 16:19:23 GMT</pubDate>
    <dc:creator>y-allen</dc:creator>
    <dc:date>2025-06-24T16:19:23Z</dc:date>
    <item>
      <title>Prevent 'Changes Have Not Been Saved' Warning on UI Page</title>
      <link>https://www.servicenow.com/community/community-central-forum/prevent-changes-have-not-been-saved-warning-on-ui-page/m-p/3299094#M3501</link>
      <description>&lt;P&gt;Good morning. I have designed a UI page that contains a slushbucket. However, when selections are made, moving items from the left side to the right side, a warning is presented to the user upon clicking Submit (#approve) on the UI page. It is confusing to users as they believe they are about to lose data, when they are not.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Can anyone provide assistance on preventing this warning message from displaying when the ui page/form is submitted?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've searched for methods of preventing the unsaved changes warning, and,&lt;/P&gt;&lt;P&gt;added functionality to the script to clear the right side of the slushbucket prior to submitting the form with no success.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This button triggers form submission.&lt;/P&gt;&lt;P&gt;HTML:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;footer class="modal-footer flex"&amp;gt;
     &amp;lt;button id="approve" type="submit" class="btn btn-primary"&amp;gt;Submit Acknowledgement&amp;lt;/button&amp;gt;
&amp;lt;/footer&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;Client Script:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;    $j('#approve').on('click', function() {
        // Prevent the unsaved changes warning
        top.window.onbeforeunload = null;

        //Return the slushbucket to its orginal state
        var rightSelect = sb.getRightSelect();
        $j(rightSelect).find('option').remove();

        form.submit();
    });&lt;/LI-CODE&gt;&lt;P&gt;Any assistance is greatly appreciated and thanks in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jun 2025 16:19:23 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/prevent-changes-have-not-been-saved-warning-on-ui-page/m-p/3299094#M3501</guid>
      <dc:creator>y-allen</dc:creator>
      <dc:date>2025-06-24T16:19:23Z</dc:date>
    </item>
  </channel>
</rss>

