- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-13-2024 03:58 AM
hello,
i need to make the submit button redirect to SOW workspace for itil users only (and stay ootb for non itils users)
the redirect is supposed to be to:
/now/sow/record/sc_req_item/ + new RITM's sysid;
how can i do that?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-13-2024 04:55 AM - edited ‎08-13-2024 05:37 AM
i managed to solve the requirement by creating a widget with something similar:
and inserting the widget on the requests summary via page in designer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-13-2024 04:40 AM
create a client script I believe to run off the submit button
(function executeRule(current, previous /*null when async*/) {
// Check if the user has the 'itil' role
if (gs.hasRole('itil')) {
// Redirect to the SOW workspace with the new RITM's sys_id
var sowWorkspaceUrl = '/now/sow/record/sc_req_item/' + current.sys_id;
action.setRedirectURL(sowWorkspaceUrl);
}
})(current, previous);
- something like this you will need to amend it to your reqs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-13-2024 04:55 AM - edited ‎08-13-2024 05:37 AM
i managed to solve the requirement by creating a widget with something similar:
and inserting the widget on the requests summary via page in designer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-13-2024 05:30 AM
What is the entire use case (step by step) that you are trying to implement? What is the exact problem you need help with? What have you already tried and what exactly did not work?
Blog: https://sys.properties | Telegram: https://t.me/sys_properties | LinkedIn: https://www.linkedin.com/in/slava-savitsky/