Disable alert "Changes you made may not be saved." for particular catalog form on Service Portal

Community Alums
Not applicable

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.

find_real_file.png

 

Thanking you.

Regards,

Akshay

1 ACCEPTED SOLUTION

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;

View solution in original post

25 REPLIES 25

Community Alums
Not applicable

Hi Rajesh,

I have added g_form.modified = false; but not working.

For g_form.fieldChanged("FIELDNAME", false); getting type error - 

find_real_file.png

I am using New York version.

 

Regards, 

Akshay

 

hammad ul aziz2
Mega Guru

hi Akshay!

simple and easy trick before redirecting execute this code

top.window.onbeforeunload = null;

and there is also a property you may want to have a look.

glide.ui.dirty_form_support : Alert user navigating away from a modified form, with option to cancel navigation.

 

mark this correct if that solves your problem or help ful if this helped you in any way.

 

thanks

hammad

Hi Hammad,

I have the different scenario

When user change the field values in form and when they go to next form. they are not getting popup "your changes may not be saved" in my custom investment portal. Please let me know how can I achieve this. what kind of script do I need to use for that.

I didn't get your question, can you explain in detail pls?
or contact me here on whatsapp I would feel happy to help you 
+923063231735

Hi Hammad,

I have q requirement that when user change values to the any field in one form and goes to the next form without saving first form field values. Users are not getting pop up as "your changes may not be saved". this is happening on my investment portal. 

 

In the backend forms it's getting pop up, but in portal no pop up getting.

 

Thanks