How to override view rules with GlideDialogForm?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2023 11:17 AM - edited 11-13-2023 06:40 AM
In an UI Action, I'm trying to display 'request_de_escalation' form using GlideDialogForm. However, the 'default_view' form is displayed because it is set by View Rules.
When clicking the UI button, the 'request_de_escalation' form pops up for a second, and then reverts to the 'default_view' form.
How can I override the view rule with GlideDialogForm?
There is the 'sysparm_view_forced' parameter set for the dialog, but it does not help.
The UI Action code:
var answer = response.responseXML.documentElement.getAttribute("answer");
var dialog = new GlideDialogForm('De-escalate', 'sn_customerservice_escalation');
dialog.setSysID(answer);
dialog.addParm('sysparm_view', 'request_de_escalation');
dialog.addParm('sysparm_form_only', 'true');
dialog.addParm('sysparm_view_forced','true'); // This parameter does NOT help
dialog.render();
The View Rule:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2025 03:21 AM
Hi Marek,
Did you get the solution for this?