- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-07-2018 10:45 PM
Hi All,
I have created a new catalog item that is visible on the Service Portal. In the Catalog Item, I want a clickable link to be displayed. This link shouldn't be in the description.
I created a macro first, and then included that in the macro variable. Wrote a OnLoad client script which has the header reference to the macro.
Macro:
Client Script:
document.getElementById('testMacro').href="https://www.google.com"
I replaced document with g_form but still no luck.
I'm able to see the link on the ServiceNow catalog Item view but failed to see that on the Service Portal catalog item.
Please help me make it visible on the Service Portal's Catalog item.
Thanks
Jagadish
Solved! Go to Solution.
- Labels:
-
Service Catalog
-
Service Portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-07-2018 11:38 PM
Hello Jagadish,
You need not to use UI macro any more. Please create widget write the HTML code there. Below the screen shot.
Then include this newly created widget in your catalog item.
Now include this widget into your Catalog Item ( By creating a new variable of type macro in Item As shown in screen shot below)
After adding this variable into the catalog item, open your catalog item in service portal and check you will see this working
Please hit Like if this rings the bell in your mind and mark my response correct if this solves your issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-30-2021 08:51 PM
Replace your_URL_address with the address where you want to go, clicking on the image link.
Example : If you write "https://www.google.com/" there, then clicking on the image will redirect you to the google page.
Similarly, put the URL or the page where you want to redirect the end user who clicks on the image.
Please don't forget to hit Helpful button if this rings the bell in your mind and mark my response correct if this solves your issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-31-2021 06:22 AM
Hi,
I just want to show image. when they link on hyperlink variable.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-30-2021 12:13 PM
Hi,
I have used below HTML template. Image is not displaying in hyperlink. Can you please check and help me out.
<a href="https://testdev.service-now.com/db_image.do?sys_id=03906c54db1be010df739d4b8a961"> <img src="Z%20Images%20for%20R&D%20(York%20/%20Ann%20Arbor).jpg" width="349" height="251"/>Hello</a>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-05-2022 05:16 AM
I don't have macro as variable type in my instance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-22-2023 02:15 PM - edited ‎09-22-2023 02:16 PM
one year later.... use type=custom. and in the tab called 'type specifications' add your widget.