- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-24-2018 01:30 AM
Hi guys,
I would like to have a redirect for a specific catalog item so that after Order Now is clicked the user is being taken to a custom page I created. So, instead of being taken to the "id=sc_request&is_new_order=true&table=sc_request&sys_id....." page I would like to be able to redirect to another page.
This is working great for record producers because you can simply put producer.portal_redirect = "<URL here>"; in the Script section of the producer but for requests I think it must be done in the SC Catalog Item widget.
I cloned the widget and played around with the Client Controller function handleRedirect() but nothing seems to work. Any ideas why? Or if I am at least on the right track here? I know this must be a simple change in the widget but nothing I tried so far seems to do the trick.
It must be the handleRedirect() function that is taking care of the after submission part because if I comment it out the submission doesn't work anymore.
Many thanks in advance for any ideas and replies.
Thanks,
Bogdan
Solved! Go to Solution.
- Labels:
-
Service Portal Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā12-07-2018 02:48 AM
Hi Dana,
Yes, you are right. I didn't clone the sc_checkout widget either.
In the SC Catalog widget in the function handleRedirect() function I changed the following lines.
1. var page = table == 'ticket' ? 'copy_of_sc_request' : 'sc_request';//copy_of_sc_request is my custom page to which the submission redirects
2. $window.location.href = spUtil.format(c.options.url, {page: 'copy_of_sc_request', table:'sc_request', sys_id: sys_id}); // same here as I have 1 record producer and 1 catalog item in my portal, so I need the redirect to go to copy_of_sc_request page in both situations.
Hope this helps,
Bogdan

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā12-06-2018 06:05 AM
Hi,
I am also interested in this, please.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā12-06-2018 09:52 AM
HI Dana,
I already replied to kkirshman. Please have a look there and if you need more info let me know.
Thanks,
Bogdan

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā12-07-2018 12:08 AM
Hi Bogdan,
It took a while before my earlier message was approved.
I have a sys property in place for bypassing the Order confirmation. What I need to understand is where can I modify my code to redirect to the incident/request created after form submission. I already tried altering the handleRedirect function with no result. Nothing seems to affect the current redirect, which is back to the form. Cloning and changing the sc-checkout widget seems unnecessary work. I work on Kingston.
Any suggestion will be greatly appreciated.
Regards,
Dana
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā12-07-2018 02:48 AM
Hi Dana,
Yes, you are right. I didn't clone the sc_checkout widget either.
In the SC Catalog widget in the function handleRedirect() function I changed the following lines.
1. var page = table == 'ticket' ? 'copy_of_sc_request' : 'sc_request';//copy_of_sc_request is my custom page to which the submission redirects
2. $window.location.href = spUtil.format(c.options.url, {page: 'copy_of_sc_request', table:'sc_request', sys_id: sys_id}); // same here as I have 1 record producer and 1 catalog item in my portal, so I need the redirect to go to copy_of_sc_request page in both situations.
Hope this helps,
Bogdan

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā12-07-2018 03:27 AM
Hi Bogdan,
Thanks for the quick reply.
This is what I was missing: hard coding the page name when creating the url. This worked perfectly!
Thanks,
Dana