How to pass image URL In UI Page Image Tag

Shilpi Sharma2
Tera Contributor

Hi Team,

How to pass Image URL in UI Page 

<img src="/myincident.png" /> but no image is coming only cross mark is coming. Please help 

5 REPLIES 5

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Shilpi,

if you are referring to showing images from images table on UI page; then use this

1) go to images table;

2) open the image you want

3) pick the html code and use it

Example:

 <img src="book-icon.png" width="48" height="48"/>

find_real_file.png

UI Page Code: HTML:

<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">

    <p>Book Icon</p>
 <img src="book-icon.png" width="48" height="48"/>    
</j:jelly>

find_real_file.png

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur

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

@Shilpi Sharma 

Hope you are doing good.

Let me know if I have answered your question.

If so, please mark appropriate answer as correct & helpful to close the thread.

Regards
Ankur

 

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

@Shilpi Sharma 

Hope you are doing good.

Did my reply answer your question?

If my response helped you please mark it correct to close the question so that it benefits future readers as well.

Thanks!
Ankur

 

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

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Shilpi,

Any update on this?
Can you mark answer as correct, 👍 helpful if you were able to achieve the requirement. This enables other members to learn from this thread.

Regards

Ankur

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