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

deepthireddy
Kilo Expert

Tried using List control->omit new button but this omits the "new" button on the table also. Requirement is to only hide it on the list.


workaround i used for this is to hide the new button on list and added new module on left navigation 'Create New' to create items in table.


Thank you.But is there any other way that what you mentioned above? Need to hide it only on list view.


Does controling list new button using a role will work for you?