- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2020 01:55 AM
Hello Developers,
We have requirement for Service Portal catalog form. We need to redirect from one form to another form without knowing the end user. If end user selects any particular value then form will redirect to another form but we are getting alert box -
"Changes you made may not be saved". Thing is if they click on cancel, they will not redirect to another form and we want to prevent this case.
Is there anyway to disable this alert for particluar catalog form only.
Thanking you.
Regards,
Akshay
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2020 04:54 AM
correct! so we cant say that it comes from browser level.
although before redirecting we can use this code to avoid that popup.
top.window.onbeforeunload = null;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2020 08:51 PM
Hi,
g_form.modified=false;
in the script before redirecting to the other page.
Regards,
Krishna
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2020 06:04 AM
Hello Krishana,
I have added g_form.modified = false; but not working.
Regards,
Akshay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2020 02:14 AM
Hi Akshay,
that is expected by design.
User has given some value and is moving away from the page the message comes from browser level.
how are you redirecting? is it via onchange client script on some variable
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2020 02:46 AM
we can override this funtionality
glide.ui.dirty_form_support : Alert user navigating away from a modified form, with option to cancel navigation.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2020 04:47 AM
Hi,
that system property is available but if that is updated it would be global impact throughout the instance
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader