GlideDialogWindow/GlideModal are not working on service portal

J P Rohini
Tera Contributor

Hi All,

I have written one Catalog client script and in that i have used GlideDialogWindow for pop up on SP and also i have used GlideModal still its not working.

Please guide me here what i need to use to call the UI page from OnSubmit() catalog client script for customize pop up on SP.

Catalog  client script:

Type: OnSubmit

UI Type: All

 

var short_text = g_form.getValue("short_description");
var dialog = new GlideModal("attach_parrent_dialogbox"); 
dialog.setTitle("Similar incidents"); 
dialog.setSize(750,300);
dialog.setPreference("short_text", short_text);
dialog.render();

Please guide on the above one.

Any help is appreciated!

Thanks in advance!!

3 REPLIES 3

Mohit_Gupta
Tera Guru
Tera Guru

Hi @J P Rohini ,

 

I don't think so both method supported on SP

please check below link to get the more information and alternative solution.

https://www.servicenow.com/community/developer-forum/glidedialogwindow-in-service-portal/m-p/1991203...

I hope this helps 

Please mark my answer correct if this helps you 

Thanks

Mohit

Hi Mohit Gupta,

 

Thanks for the input!

I have tried, but not working as expected.

 

Do you have any sample scenario?

 

Thanks,

Rohini 

Hi @J P Rohini ,

Please find below link to have modal on Service Portal.

https://serviceportal.io/modal-windows-service-portal/

And below link will help to check other thing

https://www.servicenow.com/community/developer-forum/modal-widget-in-portal/m-p/1521346

I hope this helps 

Please mark my answer correct if this helps you 

Thanks

Mohit