How to add a PDF form link on the Catalog item on Service Portal

Arjun Reddy Yer
Tera Guru

Can help me @Vasantharajan N @shloke04 

 

Need to add a PDF form link on the Catalog item on Service Portal. 

As when the user select a option from drop down list a PDF form link should get populate. Once User click on the link then PDF form should get download. After filling the form and attaching the form then only User must be able to submit the request.

As I had created but it's not working on Service Portal.

Below are the steps that I had followed.

 

Step 1: 

Attached the form in the Catalog Item

ArjunReddyYer_0-1701323805065.png

 

Step 2:

Created UI Macro as below

ArjunReddyYer_1-1701324068682.png

<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
<p><a href="/sys_attachment.do?sys_id=6a8f177d47f23590f2a4dc3a216d4387" title="Click Here to Download the Call Recording Form">Click Here to Download the Call Recording Form</a></p>
</j:jelly>

 Step 3: 

Mentioned the Macro in the variable

ArjunReddyYer_2-1701324422648.png

Step 4:

Visible of the option 

ArjunReddyYer_3-1701324529695.png

As it's not visible on Service Portal @Vasantharajan N 

1 ACCEPTED SOLUTION

@Arjun Reddy Yer 

It is showing in my PDI . And check in portal view

Please check the whole step with snapshot.Screenshot (48).pngScreenshot (47).pngScreenshot (46).png

View solution in original post

5 REPLIES 5

shubhamdubey
Mega Sage

@Arjun Reddy Yer 

 

As jelly scripting is not supporting on service portal .

Instead of UI MACROS you can use widget to getting  this functionality .

follow below links

https://www.servicenow.com/community/csm-forum/how-to-create-a-variable-with-a-widget-for-attachment...

If possible can I get it in detail

@Arjun Reddy Yer 

see in your type specification there is section for the widget.

There you need to create a custom widget and add them.

Follow below link it explain step by step .

 

https://www.servicenow.com/community/itsm-forum/want-to-provide-excel-template-on-catalog-item/m-p/6...

 

pls let me know if any assistance required

Added widget as mentioned below but still not able to view

ArjunReddyYer_3-1701328486203.png

Creation Process followed

image.png

<p>Please click <a title="here" href="https://test2.service-now.com/sys_attachment.do?sys_id=6a8f177d47f23590f2a4dc3a216d4387">here</a> to download the file</p>

ArjunReddyYer_1-1701328288221.png

ArjunReddyYer_2-1701328339955.png