how to remove new button from reference field

samadam
Kilo Sage

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.

1 ACCEPTED SOLUTION

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'

 

AnuragTripathi_0-1729610970475.png

 

 

This will remove new for this table on all reference lookups.

-Anurag

View solution in original post

9 REPLIES 9

Runjay Patel
Giga Sage

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

-------------------------------------------------------------------------

Anurag Tripathi
Mega Patron
Mega Patron

When you click on the Loopup (Magnifying glass) , the popup window is open with the list (and it has New). 

AnuragTripathi_0-1729609774423.png

 

Right click on the the  List header -> Configure -> List Control

AnuragTripathi_1-1729609806186.png

 

 

Click on Omit New and Save

 

AnuragTripathi_2-1729609868708.png

 

-Anurag

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

YEs, Only for this particular list. 

But like everything you should test yourself too. 

-Anurag