UI action client script not working in workspace view and working only in native UI

AamerA
Tera Contributor

Hi @Ankur Bawiskar ,

 

I have a Ui action called "Create Reimage incident" on the related list to create incident by selecting the configuration item (CI's Affected table) as below.

Ui action and script :

 

AamerA_0-1741599556212.png

 

 

AamerA_1-1741599556283.png

 

 

script include which is called in UI action:

 

AamerA_2-1741599556565.png

 

 

AamerA_3-1741599556232.png

 

 

For this to be available on the Workspace related list i have created declarative action assignment as below and calling the same script which is there in ui action as well in declarative action assignment client script, which is making the Ui action visible in the related list, but when clicking on that getting error in the browser console as  "SCRIPT:EXEC Error while running Client Script "GlideScopedScript": TypeError: g_form.getChecked is not a function"

 

 

AamerA_4-1741599556425.png

 

 

Declarative Action assignment:

AamerA_5-1741599556281.png

 

 

AamerA_6-1741599556309.png

 

workspace Uia ction visbility:

AamerA_7-1741599556532.png

 

 

can someone please help me know why this error is coming, when it is working fine in Native UI and not working in workspace and is there any other configuration i need to create to this work in workspace view

0 REPLIES 0