GlideDialogWindow.get().destroy(); not working in Agent Workspace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2020 06:51 AM
Hi ,
i used this function in UI Page, but GlideDialogWindow.get().destroy(); function not working in Agent Workspace.
how to kill dialogue box when we click on Cancel button
UI PAge:
HTML:
<g:dialog_buttons_ok_cancel ok="return validateComments()" cancel="return cancel()" ok_type="button" cancel_type="button" />
client script:
function validateComments() {
var businessservice=gel("input_business_service").value;
var comments = gel("dial_comments").value;
var contacttype=gel("HoldReason").value;
comments = trim(comments);
if ((comments == "" ){
return false;
}
GlideDialogWindow.get().destroy();
g_form.setValue("comments", comments);
g_form.setValue('business_service',businessservice);
g_form.setValue('contact_type',contacttype);
return true;
}
function cancel()
{
GlideDialogWindow.get().destroy();
return false;
}
UI Action:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2020 12:45 PM
No , not working my end. any solution's to fix it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2020 02:41 AM
Hey.. Did you find anything here?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2020 03:46 AM
you got solution for this?
I also have same issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2020 06:36 AM
I am facing the same issue, did you find any solution/ workaround for this issue?
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2022 12:50 AM
Hello,
I too, I just had the same problem, did you find a solution/workaround to this problem?
Thanks