Agent Workspace Modal - Size issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-07-2020 02:31 AM
Morning!
I am in the process of setting up Agent Workspace for our organisation and am working through our custom UI actions to get them working. One such UI action is for creating customer chases - it's a very simple action that displays a specific view of the task table with fields to be filled in and another UI action to submit it.
In the standard UI this was done using GlideDialogForm however this doesn't work in the Agent Workspace so I have swapped to using g_modal.showFrame.
Everything is working except for changing the size. In the default UI the window height automatically changes to show all 3 fields however in the workspace the modal is very short and barely fits a single field. The size parameter only appears to affect the width and not the height. Does anyone know how I may modify the below to also change the heght of the modal. Please find my code below (Note: I have tried 'lg' and 'xl' as sizes to no avail).
function onClick(g_form) {
function openPopup() {
var SysID = g_form.getUniqueValue();
var TableName = g_form.getTableName();
var url = "/" + TableName + ".do?sys_id=" + SysID + "&sysparm_view=Customer_Chase&sysparm_form_only=" + true; //&sysparm_stack=no&sysparm_workspace=" + true;
g_modal.showFrame({
title: getMessage("Create Customer Chase"),
url: url,
size: 'xl',
autoCloseOn: 'URL_CHANGED',
});
}
openPopup();
}
Thank you for any help you can provide.
- Labels:
-
User Interface (UI)
- 3,244 Views

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-21-2020 07:24 AM
I'm also running into the sizing issue for the g_model.showFrame, did you ever get anything working for it?
You can also try opening a record in a new workspace tab instead of a popup:
function onClick(g_form) {
g_aw.openRecord("sys_user",g_form.getValue("caller_id"), { "mode": "form" });
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-10-2022 12:42 PM
If you're here with this issue, there is a height parameter you can pass.
g_modal.showFrame({
url: '',
title: '',
height: '16rem',
size: 'xl'
}