Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

Dialog box not showing when clicking UI action

Venjamin
Tera Contributor

I have a requirement to create a "Feedback" option on the incident table. I've created a Feedback UI action, that in theory should generate a dialog box, and when the box is closed / submitted, it should save the feedback to a different table, linked to the Incident table via a reference field. 

 

The problem is, nothing happens at all. The Dialog box doesn't open, it's as if nothing happens at all. 

Venjamin_0-1731337568471.png

// 
function onClick(g_form) {
	var incidentSysID = g_form.getUniqueValue();
	var incidentNumber = g_form.getValue('number');
	var dialog = new GlideDialogWindow('text_popup', false);
	dialog.setTitle('Please provide feedback');
	dialog.setPreference('table', 'u_incident_feedback_table');
	dialog.setPreference('sysparm_sysID', incidentSysID);
	dialog.setPreference('sysparm_number', incidentNumber);
	dialog.render();
}

function onComplete(feedback) {
	var dialog = GlideDialogWindow.get();
	dialog.destroy();
	var g_form = new GlideForm();
	g_form.addInfoMessage('Thanks for the feedback');
}

 

 

I've included my settings and the script I'm using. Any assistance would be greatly appreciated! 

2 REPLIES 2

Bert_c1
Kilo Patron

Seems 'GlideDialogWindow' is deprecated in Washingtondc release.

 

https://developer.servicenow.com/dev.do#!/reference/api/washingtondc/client/c_GlideDialogWindowAPI?n...

 

which states: This API has been deprecated, use the GlideModalV3 API instead

Runjay Patel
Giga Sage

Hi @Venjamin ,

 

Just change GlideModel() from GlideDialogWindow(). Rest will work as it is.

 

-------------------------------------------------------------------------

If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.


Regards
Runjay Patel - ServiceNow Solution Architect
YouTube: https://www.youtube.com/@RunjayP
LinkedIn: https://www.linkedin.com/in/runjay

-------------------------------------------------------------------------