- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-24-2017 04:58 PM
Hello,
I know documents can be attached using the paperclip in the top right corner of requests, but I want to see if there is a way to also have that show for a field. I have found discussions on form annotations and they seem to be in the right direction but not quite what I am looking for.
The result I got from this post https://community.servicenow.com/thread/163456?q=Attachment%20link%20paperclip , gives me the following on the form:
1. the link is not clickable
2. I want to have that but under a field (e.g. Name: Click here to manage attachments or something around that nature) I just want to be able to add it to a different section of the form that is not the top.
Anyone else have the same issue or can offer an tips?
Thanks in advance,
Grace
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-24-2017 07:38 PM
Hello Grace,
May I know which version of ServiceNow are you using? Jelly doesn't work on versions after the Geneva and even I had same issues as Macros doesn't work.
The Out of Box feature of attachment paperclip in a catalog Item is part of Service Catalog widget which you have to use in versions after Geneva.
You can create a new widget with below HTML code which can give you a paperclip below your field but you'll need to figure out the client and server scripts that will actually upload the file to the form.
<div id="sc_attach" >
<label tabindex="0" style="float:left;font-weight:normal;cursor:pointer;">
<sp-attachment-button></sp-attachment-button>${Add attachments}
</label>
</div>
You can try adding this widget to the variable in the default value section.
Thanks,
Sreejith
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-24-2017 07:38 PM
Hello Grace,
May I know which version of ServiceNow are you using? Jelly doesn't work on versions after the Geneva and even I had same issues as Macros doesn't work.
The Out of Box feature of attachment paperclip in a catalog Item is part of Service Catalog widget which you have to use in versions after Geneva.
You can create a new widget with below HTML code which can give you a paperclip below your field but you'll need to figure out the client and server scripts that will actually upload the file to the form.
<div id="sc_attach" >
<label tabindex="0" style="float:left;font-weight:normal;cursor:pointer;">
<sp-attachment-button></sp-attachment-button>${Add attachments}
</label>
</div>
You can try adding this widget to the variable in the default value section.
Thanks,
Sreejith
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-25-2017 08:33 AM
Hi Sreejith,
We are on Istanbul UI16. No wonder!! Nice to know thank you!
Thanks for the tip! Is there a certain variable type I should be using in the catalog item? Currently its just a textfield so the HTML code shows as the default, unless it should be that way?
Thanks,
Grace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-25-2017 09:34 AM
Hi Grace,
I used a macro variable in the catalog item and instead of attaching a macro ,you can attach the widget from the default value section .
Thanks,
Sreejith