Override “New” button behavior in CSM/FSM Workspace list Under the(Onboarding and Deployment Tables)

Rohitp484
Giga Contributor

I want to change the behavior of the "New" button on an Opportunity list
inside CSM/FSM Configurable Workspace so that instead of opening the default
record creation form, it opens a custom Interceptor workspace page like this below i attached

Rohitp484_0-1768904495097.png

Not this below 

Rohitp484_1-1768904549645.png

This is showing when i'm clicking new button but i want this View

Rohitp484_2-1768904586418.png

Rohitp484_3-1768904664994.png

When i click New button i should be able to see this below UI

Rohitp484_4-1768904695832.png

 

2 REPLIES 2

Siddhesh Jadhav
Kilo Sage

Here’s a clean, corrected, and professional version you can post:


Hi @Rohitp484 ,

 

Open the Declarative Action available on the workspace list.
Then change Implemented as to Client Script and add the following code (make sure to replace the sys_id with your interceptor).

function onClick(g_form) {
    var sys_id = 'd7b907a1df322100dca6a5f59bf263ac';
    var tableAndParams = '/wizard_view.do?sys_target=&sysparm_stack=_list.do&sysparm_wizardAction=sysverb_new&sysparm_parent=' + sys_id;
    var win = top.window.open(tableAndParams, '_self');
    win.focus();
}

Please refer to the attached screenshot for reference.
This Triggering an Interceptor in ServiceNow Workspaces may also help. 

I have successfully overridden the behavior for the Incident Workspace declarative action using this approach.

 

Thanks and regards,
Siddhesh Jadhav

 

If this helps resolve your query, please mark it as helpful.

 

SiddheshJadhav_0-1769109802469.pngSiddheshJadhav_1-1769109833436.png

 

SiddheshJadhav_2-1769109849730.png

 

Ankur Bawiskar
Tera Patron

@Rohitp484 

check OOTB List Action on Change and it opens Interceptor, do something similar to your table

AnkurBawiskar_0-1769062519947.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