Redirect user after submitting ticket using the 'form' widget on Service Portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-26-2018 09:35 AM
Hi All,
We have an icon link on our service portal which is a URL link to another portal page which contains the OTTB 'form' widget.
This then loads our incident form so users on the portal can submit a new record:
We have the 'disable UI Actions on Form'option selected:
When we click save on the serviceportal, an info message appears saying 'record added' and then the user remains on the form.
What we would like is when the user clicks save an info message appears including the number of the ticket raised and then to redirect the user back to the homepage of the portal.
Any advice on how to achieve this is greatly appreciated
Thanks
Sam

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-27-2018 10:58 AM
So once redirected, the info messages are lost.
Below link has good information. I didn't get a chance to see every response, but i think you will get you answer there.
Please mark this response as correct or helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-01-2018 03:20 AM
Hi Sanjiv,
Thanks for the above, I've taken a look, but I'm new to coding and do not fully understand how to take what is in the linked post and transfer it to my case with it using a different widget with different setup
Thanks
Sam

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-01-2018 10:04 AM
Refer the response from Chirag which should help. Try implementing that and let me know, if you still have issues.
Please mark this response as correct or helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-26-2018 09:56 AM
In the client script there is a function that is triggered upon the completion of a ui action. This is where I placed code to redirect the user to another page.
// Modify this in the client script
$scope.$on("spModel.uiActionComplete", function(evt, response) {
var sysID = (response.isInsert) ? response.sys_id : $scope.data.sys_id;
// Here is where I placed my redirect ( you can get fancy and make this input for your cloned widget
location.href = '/sp?id=my_articles&confirmSysID=' + sysID;
loadForm($scope.data.table, sysID).then(constructResponseHandler(response));
});
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-01-2018 03:19 AM
Hi johansec,
Is there anyway to display an info message after the user has been redirected to confirm the submission of the ticket?
Alternatively is there away to display the message on the current screen and delay the redirection?
Thanks
Sam