- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2016 09:44 AM
Hello,
I have a requirement where I have to create a Field named " Description 1 " such that it should look something like this,
- > Description 1 # (Consider '#' as attachment icon).
So, I want a field so that users could write the description of attachment and attach the file beside the description in a table.
But, There is no field type attachments . I know that there is an icon on top right of each form provided by servicenow, But I want something like this to a field.
Please Help
Thanks in Advance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2016 10:02 AM
Hi Santhosh,
You can create a link to add attachment by using *annotations
1. Add annotations to selected slush bucket
2. in the annotation text enter the below code (you can change/remove the styling based on your requirement).
<div id="wrapper" style="color:#000000; line-height: 25%;height:0;text-align:left">
<a id="swamy.attachment" onclick="saveAttachment('incident', '${sys_id}');"><img src="images/icons/attachment.gifx" />Add atatchments here</a>
</div>
Regards,
Swamy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2016 09:57 AM
Hi Sai,
As far as I know, attachments are added for a record not for a field. So, I am not too sure if this is feasible. Not sure though.
Thanks and Regards,
Vikas Malhotra
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2016 10:02 AM
Hi Santhosh,
You can create a link to add attachment by using *annotations
1. Add annotations to selected slush bucket
2. in the annotation text enter the below code (you can change/remove the styling based on your requirement).
<div id="wrapper" style="color:#000000; line-height: 25%;height:0;text-align:left">
<a id="swamy.attachment" onclick="saveAttachment('incident', '${sys_id}');"><img src="images/icons/attachment.gifx" />Add atatchments here</a>
</div>
Regards,
Swamy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2016 11:16 AM
Thanks Swamy.... That Worked!
Instead of Add Attachments, I want a plain text field,so that users can enter description and attach file. How to do that?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2016 02:46 AM
Create a text field above this link.
Regards,
SWamy