Attachment download field

Vaishali 11
Tera Guru

I have a requirement where in an intake form user wants to download a word document from the form and then fill it out and upload it as an attachment. How can this be achieved?

 

Thanks in advance!!

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

@Vaishali 11 

You have to put the attachment on the catalog item and then create a link to it in the description field.

AnkurBawiskar_0-1755847703526.png

 

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

Rafael Batistot
Kilo Patron

Hi @Vaishali 11 

 

in this tutorial you’ll find the best alternative to link an attach in you catalog form

 

https://www.servicenow.com/community/developer-blog/servicenow-catalog-item-attachment-tricks-i-bet-...

 

to attach the filled form may you create a variable type Attach 

 

https://www.servicenow.com/docs/bundle/yokohama-servicenow-platform/page/product/service-catalog-man...

kaushal_snow
Mega Sage

Hi @Vaishali 11 ,

 

Implementation Steps >>>

 

1. Attach the Template to the Catalog Item Record

Navigate to the desired catalog item (under Service Catalog > Catalog Definitions > Maintain Items).

Use the paperclip icon to attach your template document directly to the catalog item record.

 

Go to attachment table and copy the sys_id of the attached doc.


2. Create a Custom Variable to Display the Download Link

 

Under Variables, create a new variable named something like Template Download.

Set the Type to Rich Text.

In the field’s Type Specification, insert HTML to link to the attachment:

<p>
Please download the template <a href="/sys_attachment.do?sys_id=YOUR_TEMPLATE_SYS_ID" target="_blank">
here</a>, complete it, then re-upload below.
</p>

 

Or go to HTML field and click url emoji, and in the url link paste - /sys_attachment.do?sys_id=YOUR_TEMPLATE_SYS_ID target="_blank"

 

Replace YOUR_TEMPLATE_SYS_ID with the attachment's actual sys_id...

 

 

If you found my response helpful, please mark it as ‘Accept as Solution’ and ‘Helpful’. This helps other community members find the right answer more easily and supports the community.

 

 

Thanks and Regards,
Kaushal Kumar Jha - ServiceNow Consultant - Lets connect on Linkedin: https://www.linkedin.com/in/kaushalkrjha/