- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2017 08:35 AM
We have a custom form layout that contains only the fields relevant to resolving an incident. I have created a UI Action that brings up this form:
function showMyForm(){
//Get the table name and sys_id of the record
var tableName = g_form.getTableName();
var sysID = g_form.getUniqueValue();
//Create and open the dialog form
var dialog = new GlideDialogForm('Resolve incident', tableName); //Provide dialog title and table name
dialog.setSysID(sysID); //Pass in sys_id to edit existing record, -1 to create new record
dialog.addParm('sysparm_view', 'ResolveDialog'); //Specify a form view
dialog.addParm('sysparm_form_only', 'true'); //Add or remove related lists
dialog.render(); //Open the dialog
}
This is the form that pops up and they have to populate the close code and notes:
But, when you click "Update", you get this warning:
If I click "Leave" it closes the dialog completely and refreshes the incident record. If I click "Stay", it closes the dialog completely and the incident record shows the blue change icon next to the fields that I changed via the dialog form. How can I resolve this issue?
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2017 09:07 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2017 06:12 AM
Instead of a pop up, could I refresh the ticket they're on to switch to the "resolvedialog" view, then when they update, take them back to the view they were on previously? It seems the issue is triggered because while they have the pop up form open and are making changes, the background ticket is showing those changes, so when the pop up goes to close, the background page refresh is giving a warning.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2017 12:25 PM
Is this because GlideDialogForm is not a documented function?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2017 06:51 AM
I would also like to know if GlideDialogForm is deprecated/not supported.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2017 09:07 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2019 08:39 AM
Can you please share how did you resolve the issue ? thank you