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

Rahul Jain11
Kilo Guru

Instead of editing the global UI action, you can write the Omit condition in the list control as follows:

 

var list = RP.getParameterValue('sysparm_view');
if(list == 'sys_ref_list')
answer = true;
else
answer = false;
 
Regards
Rahul Jain

Thanks Rahul, it worked for me

Thanks Rahul, It worked for me too!

Thank you so much sir!