- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2020 08:48 PM
Hello,
I have created a new Module under change managenet Menu, which will display only the change requests which are submitted for approval state.
I have created a UI action on change request form, this UI button i wanted to display like List bottom button.
But this button is now visible for all the change request modules like, open requests, closed requests.
I wanted to display it only for one module which i have created now.
List view of newly created Module:
----------
List of view of OOB modules: Here that Notify button should not be visible
-----------------------------------------
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2020 11:35 PM
Hi Lalitha,
it seems the UI action condition doesn't evaluate the url in condition field
https://hi.service-now.com/kb_view.do?sysparm_article=KB0681797
I have taken another approach and it is working fine and showing the button only when that module is opened
1) created UI script - notify_button
URL: https://dev59996.service-now.com/sys_ui_script.do?sys_id=3858001fdb1210108ab0a0f2ca96196d
2) in that added script to check the url contains the module sys_id or not
3) if not then hide that button using DOM
Note: this is not recommended
Regards
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
07-29-2020 08:54 PM
Hi Lalitha,
You can use UI action visibility to hide/show buttons based on condition for more details please refer below link
Thanks
Himanshu

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2020 08:59 PM
Please create a new view for your table in list view, and have your module open up that view only, then you can control your UI action visibility(related list inside ui action) by setting the view .
Let me know if you need any assistance.
Please Mark as ✅ Correct if this solves your issue and also mark 👍 Helpful if it helps resolve your problem.
Thanks,
Saji
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2020 09:25 PM
Hello Sajilal,
Can u please help me how to acheieve this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2020 03:05 AM
Hi Lalitha,
you cannot make it show for 1 module and hide for other module.
UI Actions are on table and not module.
If you want to show that List Bottom button only for specific set of records then copy the query from this screenshot and use that in the condition field of UI Action
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader