- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2023 04:46 PM
I would like to hide the "New" button from the list screen that appears when you click the "i" icon in the reference field.
I would like to leave the "New" button on the normal list screen transitioned from the module.
How should this be implemented?
If you can set the view on the list screen after clicking the "i" icon, you can hide it by setting the UI action, but...
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2023 05:52 PM - edited 11-13-2023 06:21 PM
This is how it works if the user has create access to the reference table. if the users don't want to see that button then remove the create access on that table.
But if you want to customize the global new button then you can add this condition to it along with the exsisting one
!(RP.getParameterValue('sysparm_view')=='sys_ref_list' && RP.getParameterValue('sys_target')=='your_table_name')
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2023 08:25 PM - edited 11-13-2023 08:25 PM
Hi @bonsai
The view when you click on the lookup icon is sys_ref_list.
You can leverage the RenderProperties API to set conditions in the UI Action or in the Omit new condition of List Control. Both of them should works.
Sample below specific for Requested for [requested_for] field in the Request [sc_request] table.
Omit new condition
RP.getParameterValue('sysparm_view')=='sys_ref_list' && RP.getParameterValue('sysparm_target')=='sc_request.requested_for';
Cheers,
Tai Vu

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2023 04:49 PM
I am wondering why does it show a list view to you when you click the i icon. It should take to the user record.
Please mark this response as correct or helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2023 05:52 PM - edited 11-13-2023 06:21 PM
This is how it works if the user has create access to the reference table. if the users don't want to see that button then remove the create access on that table.
But if you want to customize the global new button then you can add this condition to it along with the exsisting one
!(RP.getParameterValue('sysparm_view')=='sys_ref_list' && RP.getParameterValue('sys_target')=='your_table_name')
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2024 09:08 PM
user wants create acces..but not from the new button ..is it possible?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2023 08:25 PM - edited 11-13-2023 08:25 PM
Hi @bonsai
The view when you click on the lookup icon is sys_ref_list.
You can leverage the RenderProperties API to set conditions in the UI Action or in the Omit new condition of List Control. Both of them should works.
Sample below specific for Requested for [requested_for] field in the Request [sc_request] table.
Omit new condition
RP.getParameterValue('sysparm_view')=='sys_ref_list' && RP.getParameterValue('sysparm_target')=='sc_request.requested_for';
Cheers,
Tai Vu