We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Disable "Leave Site?" pop up when leaving form

mdjoseph12
Giga Contributor

I have an onchange redirect that is triggered when a user selects a specific value from a list. Recently a popup began appearing that asks if the user is sure they want to leave. I've tried using g_form.modified but it hasn't had an effect on the issue.  Does anyone have any recommendations? I've also tried disabling this sys property glide.ui.dirty_form_suppor

1 ACCEPTED SOLUTION

Give this a try.

g_form.clearValue('impact');
g_form.clearValue('comments');
g_form.clearValue('category');
top.window.onbeforeunload = null;
top.window.onunload = null;
top.window.location = 'YOUR URL HERE';

View solution in original post

7 REPLIES 7

For catalog form using contextual search in the custom type of variable, could you please help me how can I achieve when clicked on the 'order' button of the result to redirect to the page without leave page? popup.

Thanks MB - Exactly what I needed.

Appreciate your help!

Best regards,

Eamonn

these codes don't work under workspace.

anyone could advise how to disable "leave site" popup under workspace?