how to increase the size of the dialog window .
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2023 03:13 AM
Hello,
I want to increase the dialog window size . I am using g_modal since the dialog window is supposed to opened in workspace.
Below is the script I am using:
g_modal.showFrame({
url: '/sn_hr_ws_case_creation.do?sysparm_user=' + USER,
title: 'Create Case',
size: 'lg',
width: 1000,
height: 1200,
autoCloseOn: 'URL_CHANGED',
callback: function(ret, data) {
if (ret) {
g_aw.openRecord(data.table, data.record_id);
}
}
Increasing the width and height only alters the spaces inside the dialog window and not the dialog window.
Any leads on this is highly appreciated.
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2023 03:30 AM
did you try changing adding like this?
height: '20rem',
Regards,
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2023 04:08 AM
Hi,
I don't see any documentation around this.
Please check below answered question which says the same thing.
The size attribute define the size of window and 'lg or xl' value defines the window size.
Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande
Thanks
Anil Lande