Questionnaires is not working in "CSM/FSM Configurable Workspace"

ItayB
Tera Expert

Hello, 

I am dealing with the "Questionnaires" OOTB button. 
the button works perfectly in the UI View. 
But not working in the workspace. 

ItayB_0-1764588117391.png

 

ItayB_1-1764588141220.png

 

 

The button should open the window that shows me the relevant Questionnaires for the current work order task, this is a example from the UI Classic view: 

ItayB_3-1764588267157.pngItayB_4-1764588289272.png

 

 

WORKSPACE: 

ItayB_5-1764588326746.png



And when i click the button in the workspace view, nothing happend. 

Can someone bring me a code, or a solution for this issue? 

 


Thank you, 
Itay.



7 REPLIES 7

EDIT: 

When i checkbox the Client option in the UI ACTION it WORKS! 
but then it does not work in the UI BACKEND.. 

In addition when i complete the Questionnaire in the WORKSPACE its redirect me to the record in the UI View infront back to the record in the WORKSPACE

@ItayB 

make the UI action as Client, add function name in Onclick function update the script as this

function showMyQuestionnaires() {
    var url = '/fsm_questionnaire_list.do?sysparm_show=' + g_form.getUniqueValue() + '&sysparm_tablename=' + 'wm_task';
    window.open(url);
}

AnkurBawiskar_0-1764598407043.png

 

Yes in workspace when you click it will take to native view as you cannot open list directly from workspace client script.

you can think of using g_modal API which works in workspace client script but it will be too much customization

💡 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

Nothing happened.. 

I did a new UI Action just for the workspace. 

I deleted the Regular Script and works only with the Workspace Client Script