How to show custom attachment UI page text for just one specific CSM Catalog item.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2020 03:31 PM
The requirement I have is to generate a popup message when a customer is adding an attachment to a specific Catalog item request (CSM - case form). I think it would be better just to update the UI page following the method below:
https://community.servicenow.com/community?id=community_question&sys_id=91c37d26dba52700afc902d5ca9619fd
But that will change the attachment message everywhere and not for just the case form. So I was going to try to add some Jelly code to the attachment page to only run if the catalog item being requested is = to this catalog item's name.
Is this the best way to handle this? Or is there a UI Action I can create/change to use a custom UI page so I don't have to change the out of the box version?
Or would it be better to somehow create a UI Action that popups up a separate message that comes up before the UI Page to add the attachment?
I work for the state and we recently implemented ServiceNow.
Also, will dot walking allow me to pull the catalog item (maintain items record) from the case record that is being updated?
Thank you
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2020 03:21 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2020 08:44 PM
Hi,
the approach mentioned above would work in native UI where attachment paperclip icon is being used; in your case you need to check and edit the widget
Mark ✅ Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2020 08:35 AM
The script looks like it should work but for some reason when I tried it on our system the alert didn't display. The URL had the sys_ID that I used. I tested it out using the paperclip icon instead on the widget. I didn't troubleshoot further but will keep this in my bag of tools because I want to play around with it in the future.
Thanks!