We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Need the use contains in variable

ChinnaG
Mega Contributor

Hi,

 I have field in variable, if we type with any key it should display all the values

5 REPLIES 5

J Siva
Kilo Patron

Hi @ChinnaG 

Give more information on your requirement..

Regards,

Siva

ChinnaG
Mega Contributor

I have field catalog form variable, it is a reference field when user type in character it should search any part of the field return the result not just beginning of it

Hi @ChinnaG 

 

  • Navigate to User Administration > User Preferences.
  • Create a new user preference with the name <referenced table>.autocomplete.contains (e.g., incident.autocomplete.contains).
  • Set the value to true.
  • Ensure the "System" checkbox is checked.
  • Log out and back in for the user preference to take effect. 

ChaitanyaILCR_0-1750001923686.png

replace incident with your table Name

 

there are other ways too like 

setting the property glide.ui.ref_ac.startswith to false but this takes the effect in across the platform 

and may cause performance issue consider how big your instance is

 

refer below for additional info

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0715718#:~:text=2.,for%20it%2...

 

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0753550#:~:text=To%20implemen....

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya

This is not for table, it is in catalog form variables