- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-22-2024 08:03 AM
I have a reference field on incident pointing to users. I dont want to have the ability to click on new button from there. How can i remove the new button? Users have access to create the record but dont want to have the option from the reference field on this table.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-22-2024 08:30 AM
Ok,
On List Control, Un check Omit New Button.
Add the script below in the Omit New Condition
RP.getParameterValue('sysparm_view') == 'sys_ref_list'
This will remove new for this table on all reference lookups.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-22-2024 08:19 AM
I tried it and I cannot see the New button even if I go to Users table directly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-22-2024 08:30 AM
Ok,
On List Control, Un check Omit New Button.
Add the script below in the Omit New Condition
RP.getParameterValue('sysparm_view') == 'sys_ref_list'
This will remove new for this table on all reference lookups.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-22-2024 08:57 AM
Perfect, That worked. Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-22-2024 08:22 AM
Hi @samadam @Anurag Tripathi ,
It will hide from every where which not recommended. You can just add admin role for button visibility. If you will do using list control even admin will not be able to create new user.
-------------------------------------------------------------------------
If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.
Regards
Runjay Patel - ServiceNow Solution Architect
LinkedIn: https://www.linkedin.com/in/runjay
YouTube: https://www.youtube.com/@RunjayP
-------------------------------------------------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-22-2024 08:12 AM
ITIL have access but from the form is there a possibility to exclude New only in the form that pops up when reference field search is clicked?