Gilde Dialogue window - ok button not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2022 03:53 AM
Hi Team,
Need help in one of the issue.
when we cancel a case and click on "ok" after entering reason for cancellation - pop up window is not vanishing. We need to click elsewhere in order for it to vanish - state is getting updated though .
Here is my UI Action.
function cancelCase() {
var sysId = typeof rowSysId == 'undefined' || rowSysId == null ?
g_form.getUniqueValue() : rowSysId;
var dialogClass = GlideModal ? GlideModal : GlideDialogWindow;
var dialog = new dialogClass('sn_hr_core_HR Comment Dialog');
var msg = new GwtMessage().getMessage('Enter the reason for canceling the case');
dialog.setTitle(msg);
dialog.setPreference('sysparm_task_sys_id', sysId);
dialog.setPreference('sysparm_task_table', 'sn_hr_core_case');
dialog.setPreference('sysparm_ok_method_name', 'cancelCase');
dialog.setPreference('sysparm_is_required', false);
dialog.setPreference('sysparm_is_comment', 'false');
dialog.render();
}
Thanks,
Karan
- Labels:
-
Case and Knowledge Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2022 03:57 AM
Hi,
is this OOB ui page?
Is this happening for all records?
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2022 04:22 AM
Yes,this is happening for all the records.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2022 04:31 AM
The more important question to answer is:
is this OOB ui page?
I'm guessing, it is not. In that case, you would get better help, if you shared the HTML of UI Page sn_hr_core_HR Comment Dialog - at least the area where the buttons are added to the page.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2022 05:00 AM