Display image in other tab on click of link

Appy2
Tera Contributor

Hi All,

 

In Service Portal our requirement is when user clicks on link one image should get open in another window,for e.g

" Click here to Open image" , so if user will click on here,an image should get open in another tab.

(FYI image i have already uploaded in service now image table)

Let me know if anyone has any idea on this.

 

Thanks,

Apoorva

1 ACCEPTED SOLUTION

okay  @Appy so you need to get the src or the file name of your image in db_image table and copy it like below in HTML.

You can find your file name in db_image table .Copy that and paste it in HREF

<a href="0214ADAF-1C76-4E34-966F-0EBD09534402.png" target="_blank">test</a>

find_real_file.png

if it helped please close the thread by marking the answer correct

View solution in original post

4 REPLIES 4

Mohith Devatte
Tera Sage
Tera Sage

hello @Appy 

you must have wrote HREF using <a> tag for it right in portal HTML code?

example :

<a href="your link">here</a>

in this line just add on attribute like below highlighted which will open. your image in new window

<a href="your link" target="_blank">here</a>

please mark my answer correct if it helps you

Hi Mohith,

Thanks for your quick response,

My query here is that what link i should give in HREF tag? (how can i find img link)

 

Thanks,

okay  @Appy so you need to get the src or the file name of your image in db_image table and copy it like below in HTML.

You can find your file name in db_image table .Copy that and paste it in HREF

<a href="0214ADAF-1C76-4E34-966F-0EBD09534402.png" target="_blank">test</a>

find_real_file.png

if it helped please close the thread by marking the answer correct

It worked for me,

Thank you Mohith