- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2018 08:41 AM
Hi all,
I have created to a UI page to display a dialog based on some conditions. can anyone tell me how to remove the Close icon on the dialog.
I tried dialog.removeCloseDecoration() ...but i'm getting an error that dialog.removeCloseDecoration is not a function.
Below is my code
var dialogClass = window.GlideModal ? GlideModal : GlideDialogWindow;
var dialog = new GlideModal("my_ui_page");
dialog.setTitle('Confirmation');
dialog.removeCloseDecoration(); // This is not working
dialog.setPreference("sys_id",g_form.getValue('sys_id'));
dialog.render();
Thanks in advance
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2018 04:10 AM
You need set a second parameter in your GlideModal declaration:
var gm = new GlideModal('ui_page_name',true); <-- adding true removes the close icon
Here is the documentation

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2018 08:59 AM
strange. it should work. you are on which version?
var dialog = new GlideDialogWindow("my_ui_page");
dialog.setTitle('Confirmation');
dialog.setSize(350,300);
dialog.setPreference("sys_id",g_form.getValue('sys_id'));
dialog.removeCloseDecoration();
dialog.render();
just give a try

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2018 09:01 AM
refer the thread below
if above reply did not help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2018 10:07 AM
Hi Harshvardhan,
Thank you for the response.
I currently working on Jakarta. removeCloseDecoration() works if we use GlideDialogWindow. But in my case i'm using GlideModal. The look and feel of the dialog changes in GlideModal.
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2018 04:10 AM
You need set a second parameter in your GlideModal declaration:
var gm = new GlideModal('ui_page_name',true); <-- adding true removes the close icon
Here is the documentation