Show image in a field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2023 01:55 AM
I have a request item , where user selects a record from a variable and record has a field of type ; user image , Which I should be displaying on a different variable.
Which type of variable is needed to display it and is it as simple as g_form.setValue('variable',gr.user_image field );
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2023 02:47 AM
Hi @Kumar38
The image type, stored in sys_attachment table so may be you can use attachment variable in catalog item and copy that in variable.
Just a thought...!!
This look interesting ....I'll also check..!!
ServiceNow Developer
I know one thing, and that is that I know nothing.
- Socrates
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2023 11:04 AM
Vishal , I used a attachment variable to copy using a regular script which throws attachment format error as the script returns sys Id of the attachment record.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2023 07:56 PM
Hi @Kumar38
Yeah...you are right....!!
Unfortunately I don't think so this can easily doable.
ServiceNow Developer
I know one thing, and that is that I know nothing.
- Socrates