Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

Show image attached in sys_attachment table to catalog view form

gautam7424
Tera Contributor

I want to display images attached in sys_attachment list to catalog view form.I did it by writing html in variable field.But I want to display it using script.
this is my html code:
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><img style="border: 1px solid black; align: baseline;" src="sys_attachment.do?sys_id=2acf5c20eb2131001c13abf11206fe5e" width="200" height="200" align="baseline" border="1" /></p

If anyone write an script for this will highly aprreciated.
Regards
Gautam Kumar

1 ACCEPTED SOLUTION

Hemanth M1
Giga Sage
Giga Sage

Hi @gautam7424 ,

 

what do mean by script???

 

 

the other way could be having a custom type variable and add a widget in the type specification section , include your db image as source.

HemanthM1_0-1700759644172.png

 

 

 

 

 

Accept and hit Helpful if it helps.

Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025

View solution in original post

3 REPLIES 3

Hemanth M1
Giga Sage
Giga Sage

Hi @gautam7424 ,

 

what do mean by script???

 

 

the other way could be having a custom type variable and add a widget in the type specification section , include your db image as source.

HemanthM1_0-1700759644172.png

 

 

 

 

 

Accept and hit Helpful if it helps.

Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025

I mean any server side script or client script to achieve the same.

ashwanishar
Tera Contributor