- 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:10 AM
Hi @samadam ,
That is global UI action and it appear based on the condition defined on UI action. If you do not want to make it visible then you have to add condition like it should show only if user have certain role, you can not hide it completely from all user(not best practice). you can itil or admin role for visibility.
-------------------------------------------------------------------------
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:11 AM
When you click on the Loopup (Magnifying glass) , the popup window is open with the list (and it has New).
Right click on the the List header -> Configure -> List Control
Click on Omit New and Save
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-22-2024 08:17 AM
This would remove for the form itself just not the particular record type right? Can I create a new view and assign it to pop up only on this particular form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-22-2024 08:17 AM
YEs, Only for this particular list.
But like everything you should test yourself too.