
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2023 09:41 AM
Hello Everyone,
we have a bug that when someone clicks the new ui action on a related list it just redirects them back to the same form. nothing from a configuration has changed and this has just recently been acting up.
this is the script on the ui action
var uri = action.getGlideURI();
var path = uri.getFileFromPath() + '';
path = path.substring(0, path.length - 5) + '.do';
uri.set('sys_id', '-1');
var query = new sn_grc.GRCUtils().generateNewIssue(parent);
uri.set('sysparm_query', query);
path = new sn_grc.GRCURIUtils().checkWizard(uri, path);
if (path)
action.setRedirectURL(uri.toString(path));
action.setNoPop(true);
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2023 09:15 AM
Ah wait, is this script include callable from all scopes, and if not, is your UI action in the same scope as the script include?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2023 01:25 PM
Is it possible that you have the 'Client' checkbox ticked on the UI Action, but there is no Onclick function defined?
Is it possible that Client checkbox is ticked, but the code in the script field is server side (or the other way around)?
This is where I would start. Screenshot, perhaps?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2023 07:59 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2023 09:14 AM
Strange as I don't see anything wrong with the screenshot. What does the debugger say? Same error?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2023 08:57 AM
it actually stops at line 6 when it trys to call the script include