- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2018 02:25 AM
When using the HTML-widget in SP and I want to add an image, I can't choose an image in the Image library in the instance. I can only choose images from my computer.
How do I make it possible to be able to choose from the image library? Or can I do in a different way?
Solved! Go to Solution.
- Labels:
-
Service Portal Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2018 07:56 AM
follow the below steps to get the image
1.upload the image into servicenow instance
2.click on the "Source code icon"(<>) and then use below code
<img src="image_name.png" alt="image">
it wil work fine

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2018 04:47 AM
It's not possible to modify the widget to directly choose from the image library, but you can do this in another way. You can use the '<>' button to insert whatever HTML code you want pointing to your image. Just add the 'Name' of your image from the 'System Images' table to the 'src' attribute in the code.
<img src="YOURIMAGENAMEHERE" />
Please mark this answer as correct if it answers your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2018 07:56 AM
follow the below steps to get the image
1.upload the image into servicenow instance
2.click on the "Source code icon"(<>) and then use below code
<img src="image_name.png" alt="image">
it wil work fine