How can i hide 'New' button on reference field look up list?

deepthireddy
Kilo Expert

I have a reference field 'Business Initiative' which refers to table 'Business Initiative Lists'. Is there a way i can prevent new table values to be created or existing values to be edited or deleted via this field. In short, i need to hide 'New' button on the look-up. Help please?

find_real_file.png

1 ACCEPTED SOLUTION

Abhinay Erra
Giga Sage

Hi deepthireddy


Go to UI actions and search for global table and comments is Normal list and add this condition in UI action.



&& !(RP.getParameterValue('sysparm_view')=='sys_ref_list' && RP.getParameterValue('sys_target')=='u_business_initiative_list')


1.PNG


2.PNG


View solution in original post

28 REPLIES 28

tya
Kilo Contributor

create an ACL on referenced table that only admin can create not the user having that table role.It is working


This is the way - you need ACL for Table that your field references - that ACL should restrics the user "create" oparations.


deepthireddy
Kilo Expert

Can i do it only for the list view(when clicked on reference field icon) and not on the original table list?


Hi Deepthi,



When you perform the lookup for the Business Initiative field, on that particular window right click and configure list layout and there is a checkbox for Omit New Button. This will omit the new button only for this particular list and not for the normal table list layout.



Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.


Thanks


Ankur


Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Hi Ankur,



I did the same but the New button is hidden on the table records list too:


find_real_file.png