- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-23-2025 09:21 PM
I am working on problem management , we have a OOB UI Action 'Create Problem' on incident table. As soon as we click on it a problem record is created and saved.
My requirement is to show a pop up box first and when user clicks 'OK' then only proceed to create a problem.
I have modified the below code and it is working fine in the Default view. I want to configure the same for SERVICE OPERATIONS WORKSPACE , tried several things but its not working.
**
**
What should i write in Workspace Client script ?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-23-2025 09:45 PM
yes you need to write that in workspace client script
The OOTB UI action is server side, I think you made it client + server
In workspace client script you will have to use prompt and then use GlideAjax
You will find lot of OOTB UI actions for that
Something like this
function onClick(g_form) {
var prompt = "This will create a problem ticket for this Incident. Are you sure to continue?";
var bConditionPassed = g_modal.confirm(prompt);
if (bConditionPassed) {
// use GlideAjax call here and put the above server side code in script include and pass the required parameters
}
}
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-23-2025 10:09 PM
@Amey8 ,
Please follow similar post below:
If this solution helped resolve your issue, please consider marking it as helpful or correct.
This will assist others in finding the solution faster and close the thread.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-23-2025 09:45 PM
yes you need to write that in workspace client script
The OOTB UI action is server side, I think you made it client + server
In workspace client script you will have to use prompt and then use GlideAjax
You will find lot of OOTB UI actions for that
Something like this
function onClick(g_form) {
var prompt = "This will create a problem ticket for this Incident. Are you sure to continue?";
var bConditionPassed = g_modal.confirm(prompt);
if (bConditionPassed) {
// use GlideAjax call here and put the above server side code in script include and pass the required parameters
}
}
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-27-2025 08:59 AM
I believe I also shared a working solution.
If my response helped please mark it correct as well so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-04-2025 08:20 AM
I believe I also shared a working solution.
As per new community feature you can mark multiple responses as correct.
If my response helped please mark it correct as well so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-23-2025 10:09 PM
@Amey8 ,
Please follow similar post below:
If this solution helped resolve your issue, please consider marking it as helpful or correct.
This will assist others in finding the solution faster and close the thread.