How to change view for reference lookup

tonystark
Mega Expert

Hi team,

On the incident form, when i click on caller reference lookup, we can create a new caller there. When i click on new, i want a different view to be displayed not the default view available for user table.

How do i create a new view for reference lookup?

Thanks in advance,

tony.553931 kalaipradeepksharma

6 REPLIES 6

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hi Tony,



For that you need to modify the reference table "sys_ref_list" view



Use below link to open the record in "sys_ref_list" view   :


//your_inctance_name.service-now.com/reference_table_name.do?sysparm_view=sys_ref_list



See below images for your reference -



find_real_file.png



Then go to configure ---> form layout like below and modify accordingly.



find_real_file.png



~Paramveer Singh


~Senior Developer



PS - Please mark Helpful, Like, or Correct Answer if applicable.


tonystark
Mega Expert

thanks pradeep and paramveer.



In the Reference list view, i have password as mandatory. But now i want password to be non-mandatory in reference list view and email to be mandatory & unique. for that i wrote an onload client script.but it is not working.



Can you please tellme the changes to be made to amke it work as expected.



client_script view.PNG


Change client script type to "onload" instead of "onchange".



~Paramveer Singh


~Senior Developer



Please mark Helpful, Like, or Correct Answer if applicable.