Restrict the pre-polulating the reference field value.

hanimi9623
Tera Expert

I am trying to restring the data pre-populating in reference field. When type a word, automatically, that word related names are populating.

 

Please find the screenshot.

 

How can I restrict this type of pre-showing names in reference fields?

 

Please give me suggestion.

4 REPLIES 4

Maik Skoddow
Tera Patron
Tera Patron

Hi @hanimi9623 

What and how do you want to restrict?

Maik

Anil Lande
Kilo Patron

Hi,

This is coming from the System configuration "Recent Selections".

https://docs.servicenow.com/bundle/vancouver-platform-administration/page/administer/field-administr...

If you want to disable it for only one reference fields then then you can delete all records from his table and apply a BR on "sys_ui_recent_selection" table to stop creating new record for your Table and Reference column on that table. eg. Table 'Problem' and field is  "Assigned to" .

 

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0747334

 

If you want to stop storing recent selections for all field on your instance then update the "glide.xmlhttp.max_choices" property with value 0 (zero).

 

 

 

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

Sandeep Rajput
Tera Patron
Tera Patron

@hanimi9623 The term your are referring to is called Recent selections, which are usually stored in Recent Selection [sys_ui_recent_selection] table.

 

If you wish to disable this feature on the reference fields then you can set the property glide.xmlhttp.max_choices to 0. Setting the property to zero disables recent selections.

 

For more information please refer to https://docs.servicenow.com/bundle/vancouver-platform-administration/page/administer/field-administr...

 

Hope this helps.

Prathamesh G
Kilo Sage
Kilo Sage

Hello @hanimi9623,

 

The data for pre-populating the reference fields is coming from the Recent Selection [sys_ui_recent_selection] table. All the recently selected values are stored in this tables. So if you need to disable this functionality, you need to modify the SYSTEM PROPERTY 'glide.xmlhttp.max_choices' to '0', so that recent choices will be pre-populated in your reference field.

Below is the attached link from the ServiceNow Doc which explain the 'Recent Selection' functionality in more deeper:

https://docs.servicenow.com/bundle/vancouver-platform-administration/page/administer/field-administr...

 

If the above answer resolve your issue, please mark this answer as 'Accepted Solution' and also hit the 'Helpful' button.

 

Thank You!

Prathamesh.