Making a catalog item redirect user to a specific page

Mohammad8
Kilo Expert

Hi All,

I have a catalog item/record producer that I don't want it to have any fields. I simply want to redirect the user to a specific page. In other words, when the user opens this (catalog item/record producer), it should redirect the user to a specific page. Is this possible?

1 ACCEPTED SOLUTION

Harsh Vardhan
Giga Patron

why don't you use content items here.

 

you can define it as an catalog item and whenever user will click on that it will redirect to other page or same window 

select Content type as external content.

 

adding doc link here. 

 

https://docs.servicenow.com/bundle/london-it-service-management/page/product/service-catalog-managem...

 

Procedure

  1. Navigate to Service Catalog > Catalog Definition > Content Items.
  2. Click New.
  3. Fill in the form to define the item.
    Content Item form
    FieldDescription
    Name, Category, Icon, Roles, Active,As for standard catalog items.
    Content typeThe type of information to display when a user selects the item.
    • KB Article: a ServiceNow knowledge article available to users with the specified roles.
    • Catalog Content: a static block of text, formatted with HTML.
    • External Content: documents or web pages stored outside the base system instance.
    TargetLocation where the content appears.
    • Within Catalog: displays the content within the catalog iframe window (which may not render some external websites properly).
    • New Window/Tab: displays the content in a new browser window or tab. Choose this option if the content does not display properly within the catalog.
    URLThe full URL (including the prefix http:// or https://) for external content to display when a user selects the item. This field is available only if the Content type is External Content.
    Note: Since base system instances are accessed via HTTPS, links to HTTP sites could result in a mixed mode content error or warning, depending on browser security settings.

 

 

View solution in original post

10 REPLIES 10

Hi Mohammad,

Are you trying this script after the solution was proposed or after it. Because I believe if you have applied the solution posted above then this won't work since onLoad itself may not work.

Regards

Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi Ankur,

I tried your solution first and when it didn't work I tried the solution proposed by Harshvardhan.

The problem is that the code I wrote inside the onLoad was never executed so I feel like I missed something and I want to know what I missed in case I need this in the future.

would you mind to share your catalog item screenshot which you had created before and the script which ankur given that should also work. 

 

i am not sure here, right now are you running the onload script on content item or catalog item ?

Ankur I am facing the same kind of issue. I tried what you suggested but that doesn't work. Can you elaborate little more

 

Harsh Vardhan
Giga Patron

why don't you use content items here.

 

you can define it as an catalog item and whenever user will click on that it will redirect to other page or same window 

select Content type as external content.

 

adding doc link here. 

 

https://docs.servicenow.com/bundle/london-it-service-management/page/product/service-catalog-managem...

 

Procedure

  1. Navigate to Service Catalog > Catalog Definition > Content Items.
  2. Click New.
  3. Fill in the form to define the item.
    Content Item form
    FieldDescription
    Name, Category, Icon, Roles, Active,As for standard catalog items.
    Content typeThe type of information to display when a user selects the item.
    • KB Article: a ServiceNow knowledge article available to users with the specified roles.
    • Catalog Content: a static block of text, formatted with HTML.
    • External Content: documents or web pages stored outside the base system instance.
    TargetLocation where the content appears.
    • Within Catalog: displays the content within the catalog iframe window (which may not render some external websites properly).
    • New Window/Tab: displays the content in a new browser window or tab. Choose this option if the content does not display properly within the catalog.
    URLThe full URL (including the prefix http:// or https://) for external content to display when a user selects the item. This field is available only if the Content type is External Content.
    Note: Since base system instances are accessed via HTTPS, links to HTTP sites could result in a mixed mode content error or warning, depending on browser security settings.