Interested in a ServiceNow event built for developers? Registration for now[dev]26 is officially open!

`ref_auto_completer` is not working.

Ariomar de Deus
Tera Contributor

I have a requirement where typing any name should display search suggestions within the field.

 

Example:
When typing: "rec"
Show the suggestion: "documentation record"

 

I am using `ref_auto_completer` for this, but it isn't working when the matching word appears at the end of the phrase; it only works when the text starts with those words.

 

imagem.png

 

2 REPLIES 2

Ankur Bawiskar
Tera Patron

@Ariomar de Deus 

it should work fine

Did you give correct field name?

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

boteeuwen
Kilo Sage

Check the glide.ui.ref_ac.startswith system property. If it's set to true, ServiceNow will use Starts With matching for reference autocomplete, which can override the field settings. Setting it to false should allow Contains matching, so typing rec can return documentation record.

After changing the property, clear the cache using cache.do and test the field again. If it still only matches from the beginning, ref_ac_columns_search=true on the field may also be worth checking.