How to display an image in the form field when the field stores an image URL

VamsiK144833510
Giga Contributor

I am working on a custom scoped application in ServiceNow and trying to display a country flag image on a form.

The image URL is retrieved from an external REST API (ipgeolocation.io) and is successfully stored in a String field (country_flag).

However, instead of rendering the image, the form displays only the image URL as plain text.

I also tried using the Image field type, but in that case the field shows “Click to add photo” and does not render the external image URL.

My goal is to display the actual image on the form using the stored URL, not the URL text itself.

 

0 REPLIES 0