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-26-2018 09:38 AM
You will have to clone the existing form widget and customize it to achieve this.
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:44 AM
Hi Sanjivmeher,
Thanks for the above.
What changes would I need to make to the widget once cloned in order to achieve this?
Thanks
Sam

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-26-2018 10:41 AM
In the server script, you will have to modify the below line to include the link of the incident that got created
Then in the client controller, as suggested by Johan, add location.href = '/sp';
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-27-2018 05:08 AM
Hi,
I've managed to amend the client script and get it to re-direct to a page 'cdl_internal_all_log'. However I don't get any info message appearing.
How would I get an info message to appear once redirected to the other page?
Thanks
Sam