- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-09-2014 08:31 AM
We have dirty_form_support enabled but in one instance, we are submitting the record via AJAX and redirecting. When the page tries to redirect, our users are getting the "Are you sure you want to navigate away from this page?" dialog. In this instance, since we are submitting the information behind the scenes, we don't want that to run.
I've already tried adding a line to the UI Action to force the g_form property to be false, but that did not work (g_formDirtyFocus = false). Has anyone else successfully done this?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-09-2014 09:07 AM
Looked through the code a little more and found out ServiceNow is checking for "!g_form.submitted && g_form.modified", so in my UI Action I set "g_form.modified = false" instead of "g_formDirtyFocus = false" and that solved the issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-09-2014 09:07 AM
Looked through the code a little more and found out ServiceNow is checking for "!g_form.submitted && g_form.modified", so in my UI Action I set "g_form.modified = false" instead of "g_formDirtyFocus = false" and that solved the issue.