How to Show popup When Button click on SOW

SS1510
Tera Expert

Hello ,


I have a requirement to show existing UI action on SOW on incident record. In the UI action there is a popup when button click to select, In ui action i click on the workspace form button then it is visible on the workspace, but when i click the button the popup is not showing, does anyone has any idea how to achieve this.

 
 
 
 
 
 

 

 

9 REPLIES 9

Ankur Bawiskar
Tera Patron

@SS1510 

you can use g_modal in workspace client script to show modal/pop-up etc

there are lot of OOTB UI Actions with this

Did you explore that?

55.png

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hello  ,

Thank you for your response.

I was using g_modal in workspcase client script. The popup is showing but when i click submit it is not submitting the record.

'select_business_service' , this is the ui page

function onClick(g_form) {
    g_modal.showFrame({
        title: 'Send to Hoist',
        url: 'select_business_service.do',
        size: 'md',
        height: 250,
        callback: function(result) {
            if (result === 'ok') {
                // This ensures the Incident form updates
                // after the Case is created in the background
                g_form.refresh();
            }
        }
    });
}
 

 

 

@SS1510 

your UI page must be updating the record.

did  you check if it's written properly with script?

Did you check any OOTB UI action which uses UI page and how it updates the record? use same logic

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hello @Ankur Bawiskar ,

I am not finding any similar Ui action, is there any way to do this with declarative action?