- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-19-2017 07:36 PM
Hi Team,
I am trying to render an image dynamically on ServiceNow HTML field.
To accomplish this, I set up HTML field value to:
<div> <img src="my_image_url"> </div>
However, I get the following result:
As you can see I get html text instead of rendered image.
Is there any additional configuration I need to do?
Thank you,
Regards.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-18-2017 02:44 PM
I actually ended up contacting HI support. I would like to share with the community in case they face the same issue:
Issue happens when "Field type changed on a field (storage alias ) after creation of field as an update does not cascade change in TYPE to the DB".
Example Field Type was String , Max Length = 255 at the time creation later modified to HTML or String , 4000 at the dictionary level , but in the DB it still shows varchar ( 255 ) .
To fix this issue you can either re create the field on affected instance or ask DBA to change field type.
Hope you find it useful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-19-2017 08:17 PM
Hi Eduardo,
You can use 'Image' field type instead of 'HTML' field type. HTML type is meant for HTML editing.
Hope this helps. Mark the answer as correct/helpful based on impact.
Thanks
Antin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-04-2017 01:55 PM
Hello antin.s . Thank you so much for following up.
We are rendering other HTML elements, like hyperlink as part of our HTML field.
However HTML is not rendering, it displays as text.
Same code works in other instances. Any clues?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-04-2017 07:32 PM
Can you please share some code snippets?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-04-2017 07:33 PM
Also, some snapshots if possible.