Interested in a ServiceNow event built for developers? Registration for now[dev]26 is officially open!

Download file

Shabbir1
Tera Contributor

Hello Team,

 

We have requirement that "Document" is a drop down variable on the service catalog if you select the 'yes' in that variable we need to show the document link type or name. If you click on that link document should be downloaded(Business has given the word doc) and user will fill the data and attach this doc in the attachment and submit the catalog can anyone suggest how to achieve this kindly help us in scripting or any other best salutation

1 REPLY 1

Ankur Bawiskar
Tera Patron

@Shabbir1 

Steps to achieve

1) add that file to your catalog item

2) create variable of type HTML and include the link to sys_attachment there

3) then show/hide this variable based on the drop down value

I shared solution here, enhance it

How to Provide an Excel Template Download in Service Catalog (Same Window) 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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