The CreatorCon Call for Content is officially open! Get started here.

Want reopen button on MDM form in MDM workspace post state is resolved

Ashwini Sawant2
Tera Contributor

Hello Community,

 

I am new to the workspace and would like to add a "Reopen" button to the existing MDM form when the state is set to "Resolved." This functionality was previously available in the standard UI, and I would like to replicate it in the MDM workspace. Could someone please provide guidance on how to achieve this?

 

Thanks & Regards

3 REPLIES 3

TejasSN_LogicX
Tera Contributor

 

Hi @Ashwini Sawant2 ,

Right-click on form header >> configure >> UI actions

TejasSN_LogicX_0-1760351014069.png

Then give a name to the UI action. and fill the other data write the code for UI action. 

add the condition in  current.state == 6

TejasSN_LogicX_1-1760351290004.png

make sure that 

 

You enabled this checkbox for your UI action.

 

TejasSN_LogicX_3-1760351369252.png

 

 

If my response helped you, please mark it as the correct answer and close the thread. This way, others in the community can benefit too.

Regards,
TejasSN_LogicX
ServiceNow Developer | HackaNow Finalist | Community Contributor
📧 tejas.adhalrao11@gmail.com
🔗 LinkedIn

 

Hello @TejasSN_LogicX ,

 

Thank you for your quick response.  This UI action "Reopen" was present with below condition

AshwiniSawant2_0-1760351798151.png

 

AshwiniSawant2_1-1760351882901.png

but still Reopen button is not viisble in the MDM worksapce. I have also tried to add in the below list 

AshwiniSawant2_2-1760351972247.png

 

Hi @Ashwini Sawant2 

 

Please write client-side script in workspace button, you may copy client side from native UI action and write below 2 lines to call the server side from workspace in UI action.

 

var actionName=g_form.getActionName();

g_form.submit(actionName);

 

For easy testing, open that record only in workspace on which you can see the button on native UI. Or open those records which satisfies the condition of the UI action.

 

Thanks,
Bhimashankar H

 

-------------------------------------------------------------------------------------------------
If my response points you in the right directions, please consider marking it as 'Helpful' & 'Correct'. Thanks!