Unable to disable parent window operations even though a modal window is displayed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-08-2025 06:59 PM
Dear Experts,
I would like to create a UI action that displays a modal window using GlideDialogForm, but some parts of the parent window are still operable.
Are there any points for improvement with the following script or UI action settings? I would appreciate your advice.
function openFormInModal() {
var dialog = new GlideDialogForm('New Record', 'u_dotc', function(actionName, sys_id, tableName, displayValue) {
if (actionName === 'submit') {
alert('Record created/updated: ' + displayValue);
}
});
dialog.setTitle('New Record');
dialog.setSysID('-1');
dialog.render();
}
The area marked in red is the part that can still be operated.
 
 
Thank you very much.
Best regards,
Tepp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-08-2025 08:08 PM
not possible with GlideModal or GlideDialogWindow.
When you use either of the options the modal takes the precedence and user can't interact with the main form.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-08-2025 08:47 PM
I want to disable the operation not only on the main form, but also on all the areas in the red box.
The issue is that it is a modal window, but it can be manipulated.
Tip: I have changed to GlideModalForm.
Best regards,
Tepp
 
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-08-2025 09:37 PM
yes it's possible using GlideModalForm, but what's the business requirement to allow users to enter form fields using modal and not using the OOTB form?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-08-2025 09:58 PM
@Ankur Bawiskar
The business requirement is to control the user from performing any other operation until the form is completed.
Therefore, we have been instructed to display the form in a modal window.
*The modal window is displayed from a UI action in the related list.
Best regards,
Tepp