The CreatorCon Call for Content is officially open! Get started here.

How to override view rules with GlideDialogForm?

Marek Stepien
Tera Expert

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:

view rule.PNG

1 REPLY 1

rajkumar2000
Tera Contributor

 Hi Marek,

Did you get the solution for this?