How to populate the glidedialog window on service portal

Dhodda Nagasre1
Tera Contributor

Hello All,

 

We have a requirement to populate the dialog window on service portal where we need to show accept check box along with ok ad cancel button.

 

If user click 'ok' button it should load catalog item.

If user clicks 'cancel' button the page should navigate to home page.

 

I have tried using GlideModal and GlideDialogWindow method to populate but it working in backend and but not supporting on service portal

 

Below is the sample similar box we need to populate on service portal.

 

DhoddaNagasre1_0-1690362523745.png

 

Can anyone have idea how to achieve it ? 

 

6 REPLIES 6

Hello @Nishita Padwal ,

 

I have tried using the above code and created widget and calling it from onload catalog client script. But it is not working.

 

Below is the code for catalog client script.

 

function onLoad() {
   //Type appropriate comment here, and begin script below
  spModal.open({
 
            widget: 'test'
  })
 
}

Alright,

Can you add an additional parameter "spModal" in the above solution that I gave, and then check?

 

function ($scope, $animate, $rootScope, spModal)

 

 Let me know if this works.

Thank you.

(Please don't forget to mark as helpful if it helps. )