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

I tried it and I cannot see the New button even if I go to Users table directly. 

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

Perfect, That worked. Thank you

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

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

 

samadam
Kilo Sage

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?