How to include a redirect or Content Item in an Order guide?

josh_tessaro
Giga Expert

We have a scenario where we need to ask someone a question and if they select Choice 1 we have them submit a catalog item and if the select Choice 2 we need to redirect them to a separate system. Ideally this would be done by presenting them a content item (that they cannot order) with instructions and a link.

I considered an order guide with the question on the Describe Needs page then present either the catalog item or content item depending on the choice but it appears that content items cannot be included in order guides.

Any ideas?

1 ACCEPTED SOLUTION

Brad Tilton
ServiceNow Employee
ServiceNow Employee

I've encountered this scenario a few times and I typically do this: Create my catalog item with the choice field in it. If they choose the first choice then they just continue filling out the item and submit. If they choose the second choice I have an onchange client script running on that variable that will redirect them somewhere else (maybe a content item) using javascript. This way you just have one catalog item and a client script.



Edit: Wizards do have a redirect panel, but a wizard seems like overkill in your scenario.


View solution in original post

3 REPLIES 3

Brad Tilton
ServiceNow Employee
ServiceNow Employee

I've encountered this scenario a few times and I typically do this: Create my catalog item with the choice field in it. If they choose the first choice then they just continue filling out the item and submit. If they choose the second choice I have an onchange client script running on that variable that will redirect them somewhere else (maybe a content item) using javascript. This way you just have one catalog item and a client script.



Edit: Wizards do have a redirect panel, but a wizard seems like overkill in your scenario.


Brad,



Your solution appears to be exactly what I am looking for. Any chance you would be able to provide an example client script that would handle the redirect?



Thanks!


Hi Josh,



Something like this inside of your onChange function:



if (newValue == 'your value') {


    window.location.href = 'url of the item/kb you want to redirect to';


}