how to bring attachment in modal window on click of a button in record producer

veenal
Tera Contributor

hi ,

i have created a button on record producer . on click of that button attachment / template should get displayed in modal window on same page and we need to store that template or attachment in servicenow or call template as per region .

for eg i have variable as region consisting of india and japan .

if i select india and click on display button it should show template(A) attached to it in a modal window and if i select japan and click on display button it should show template (B).

in our case if we click on display button its taking to another page / tab in google .

 

1 REPLY 1

Ankur Bawiskar
Tera Patron
Tera Patron

@veenal 

Why not use OOTB file attachment variable and have those many variables based on region?

Another way

you will have to use variable of type Custom and then add widget to it.

This widget will help user browse the file from local machine and then once you get base64encoded data of the file, you can place that file on the target record

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader