Want reopen button on MDM form in MDM workspace post state is resolved
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
8 hours ago
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
8 hours ago
Hi @Ashwini Sawant2 ,
Right-click on form header >> configure >> UI actions
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
make sure that
You enabled this checkbox for your UI action.
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
7 hours ago
Hello @TejasSN_LogicX ,
Thank you for your quick response. This UI action "Reopen" was present with below condition
but still Reopen button is not viisble in the MDM worksapce. I have also tried to add in the below list
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
7 hours ago
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!