
- 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 02:46 AM
Akshay,
I assume you have a client script to navigate to another page, have you tried g_form.clearValue() before navigating to another page.
Regards,
Rajesh

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2020 02:55 AM
Hello Rajesh,
Thanks for the reply. Yeah I have written on change client script. I have tried to clear the value before redirection but above pop up appears first then value is getting cleared.
Regards,
Akshay

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2020 03:19 AM
Try this, Before navigating away set the modified to false
g_form.modified = false;
This worked in regular form, not quite sure about catalog forms.
Regards,
Rajesh

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2020 03:35 AM
You may find this article useful.
Regards,
Rajesh