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

Hi Deepthi,



Yes got it. This works for related list. You can achieve this using ACL on the reference table. Create a ACL for 'create' operation and give it specific role.



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 that already and gave it a role. Added that role to one group. But is there a way to hide "New" button for all users including users having that role?   Here's what i did:


find_real_file.png


find_real_file.png


Kalaiarasan Pus
Giga Sage

If you want this to do be done globally for all the related list, open the global new UI action and use UI action visibility related list and add the following.



10-5-2016 11-04-17 AM.png


Hi Kalai,



The requirement is to hide New button on reference field pop-up as below. I don't want to hide it globally. ANy solution please?


find_real_file.png


Hi Deepthi,



Did you try creating a ACL with create operation with appropriate as suggested in my earlier post.



There is one more workaround which you can try.


When you configure list control for the table Business Initiative from the lookup icon, there you will see field



Users with that role only will be able to see the new button.



Try this and let me know






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