- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2024 10:40 AM - edited 02-16-2024 10:41 AM
Hi all,
I'm trying to add the ability for users to create/manage change requests within the CSM/FSM Dashboard and I added some of the UI actions to the workspace (Request Approval, Implement, Review, Close).
Within the UI actions, I have the following code in the Workspace Client Script:
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2024 08:06 AM
I figured out the problem. It was with a customized onSubmit client script that uses GlideAjax. Within the callback function, the line g_form.getActionName() was returning "none" so within the onSubmit() function, I added a line var action = g_form.getActionName() and used the action variable within the callback function. That seems to work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2024 10:45 AM
Hi @Community Alums ,
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0726499
Mark it as helpful and solution proposed if it serves your purpose.
Thanks,
Anand
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2024 10:51 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2024 08:06 AM
I figured out the problem. It was with a customized onSubmit client script that uses GlideAjax. Within the callback function, the line g_form.getActionName() was returning "none" so within the onSubmit() function, I added a line var action = g_form.getActionName() and used the action variable within the callback function. That seems to work.