- 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-31-2018 11:17 AM
Thank you very much. I was looking for it for a day. This helped me a lot
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2019 01:25 PM
I've found the same effect is achieved by setting "readOnly" = "true" in GlideModal(String id, Boolean readOnly, Number width).