- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-29-2018 03:39 AM
How to add custom attachment button on change request form other than given option.
Solved! Go to Solution.
- Labels:
-
Field Service Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-29-2018 09:50 PM
Hi Shilpi,
Try this below one , its working fine for me.
You have to write UI Action ("sys_ui_action") table.
1. Name = Attachment
2. Table =change_request
3. Order = 100
4. Active = true
5. Client (checkbox) = True
6. Form button (checkbox) = True
7. Onclick = saveAttachment(g_form.getTableName(), g_form.getUniqueValue());
Before UI Action:-
After UI Action :-
Let me know if you have any questions.
Please mark it Correct or Helpful, if it works based on impact....!!!!
Warm Regards,
Priyanka
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-29-2018 03:43 AM
You can create a ui action to open a ui page and in the page you can provide way to add attachment.
See this link.
https://hi.service-now.com/kb_view.do?sysparm_article=KB0529497
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-29-2018 08:59 PM
Hi Anurag,
I want to achieve this functionality on change request form not on service catalog. Please help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-29-2018 09:13 PM
Hi
U can create formatter for this and write UI macro as
<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
<b>Proof of purchase</b><br/>
<a onclick="saveAttachment(g_form.getTableName(), g_form.getUniqueValue())">
<img src="C:/Users/Public/Pictures/Sample Pictures/file-attachments.png" width="30" height="30"/></a>
<b></b>
</j:jelly>
Finally, add this formatter using form layout.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-29-2018 09:50 PM
Hi Shilpi,
Try this below one , its working fine for me.
You have to write UI Action ("sys_ui_action") table.
1. Name = Attachment
2. Table =change_request
3. Order = 100
4. Active = true
5. Client (checkbox) = True
6. Form button (checkbox) = True
7. Onclick = saveAttachment(g_form.getTableName(), g_form.getUniqueValue());
Before UI Action:-
After UI Action :-
Let me know if you have any questions.
Please mark it Correct or Helpful, if it works based on impact....!!!!
Warm Regards,
Priyanka