<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question How do I change the type ahead search from &amp;quot;starts with&amp;quot; to contains? in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/how-do-i-change-the-type-ahead-search-from-quot-starts-with-quot/m-p/1916276#M573202</link>
    <description>&lt;P&gt;I have a variable that will automatically do a query for starts with when entering in text. I can enter *"text" and it will do a contains search. How do I make this the default search?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="search.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/50044i234B241CCD8829AD/image-size/large?v=v2&amp;amp;px=999" role="button" title="search.png" alt="search.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 30 Jul 2015 18:37:31 GMT</pubDate>
    <dc:creator>Nic Omaha</dc:creator>
    <dc:date>2015-07-30T18:37:31Z</dc:date>
    <item>
      <title>How do I change the type ahead search from "starts with" to contains?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-do-i-change-the-type-ahead-search-from-quot-starts-with-quot/m-p/1916276#M573202</link>
      <description>&lt;P&gt;I have a variable that will automatically do a query for starts with when entering in text. I can enter *"text" and it will do a contains search. How do I make this the default search?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="search.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/50044i234B241CCD8829AD/image-size/large?v=v2&amp;amp;px=999" role="button" title="search.png" alt="search.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jul 2015 18:37:31 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-do-i-change-the-type-ahead-search-from-quot-starts-with-quot/m-p/1916276#M573202</guid>
      <dc:creator>Nic Omaha</dc:creator>
      <dc:date>2015-07-30T18:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: How do I change the type ahead search from "starts with" to contains?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-do-i-change-the-type-ahead-search-from-quot-starts-with-quot/m-p/1916277#M573203</link>
      <description>&lt;P&gt;&lt;A href="http://wiki.servicenow.com/index.php?title=Auto-Complete_for_Reference_Fields#Contains_Auto-Complete_Search" title="http://wiki.servicenow.com/index.php?title=Auto-Complete_for_Reference_Fields#Contains_Auto-Complete_Search"&gt;Auto-Complete for Reference Fields - ServiceNow Wiki&lt;/A&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 30 Jul 2015 19:02:26 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-do-i-change-the-type-ahead-search-from-quot-starts-with-quot/m-p/1916277#M573203</guid>
      <dc:creator>Mark Stanger</dc:creator>
      <dc:date>2015-07-30T19:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: How do I change the type ahead search from "starts with" to contains?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-do-i-change-the-type-ahead-search-from-quot-starts-with-quot/m-p/1916278#M573204</link>
      <description>&lt;P&gt;Hi Nicholas,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;If I understand correctly you wish to use a contains (*) search by default on the reference field shown on your screenshot.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;You could try following the following steps from the WIKI: &lt;A href="http://wiki.servicenow.com/index.php?title=Auto-Complete_for_Reference_Fields#Contains_Auto-Complete_Search" title="http://wiki.servicenow.com/index.php?title=Auto-Complete_for_Reference_Fields#Contains_Auto-Complete_Search"&gt;http://wiki.servicenow.com/index.php?title=Auto-Complete_for_Reference_Fields#Contains_Auto-Complete_Search&lt;/A&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;OL&gt;&lt;LI&gt;Disable the &lt;TT&gt;glide.ui.ref_ac.startswith&lt;/TT&gt; system property.&lt;/LI&gt;&lt;LI&gt;Navigate to &lt;STRONG&gt;User Administration &amp;gt; User Preferences&lt;/STRONG&gt;. &lt;/LI&gt;&lt;LI&gt;Select the preference "'&amp;lt;referenced table&amp;gt;.autocomplete.contains"'.&lt;/LI&gt;&lt;LI&gt;Set the &lt;STRONG&gt;value&lt;/STRONG&gt; field to &lt;STRONG&gt;true&lt;/STRONG&gt;. &lt;/LI&gt;&lt;LI&gt;Log out and log back in to immediately display the updated search. &lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;At step 3 you can create the preference if it does not yet exist, and only apply it for your user if desired.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Is this what you were looking for? &lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 30 Jul 2015 19:03:47 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-do-i-change-the-type-ahead-search-from-quot-starts-with-quot/m-p/1916278#M573204</guid>
      <dc:creator>Fernando90</dc:creator>
      <dc:date>2015-07-30T19:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: How do I change the type ahead search from "starts with" to contains?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-do-i-change-the-type-ahead-search-from-quot-starts-with-quot/m-p/1916279#M573205</link>
      <description>&lt;P&gt;Have already done that and it works every where else but here its a bit strange.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 10 Aug 2015 13:29:28 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-do-i-change-the-type-ahead-search-from-quot-starts-with-quot/m-p/1916279#M573205</guid>
      <dc:creator>Nic Omaha</dc:creator>
      <dc:date>2015-08-10T13:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: How do I change the type ahead search from "starts with" to contains?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-do-i-change-the-type-ahead-search-from-quot-starts-with-quot/m-p/1916280#M573206</link>
      <description>&lt;P&gt;Nicholas,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Mark's response is correct. What you need to do is two fold. Part 1:&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;OL&gt;&lt;LI&gt;Open the link he provided: &lt;A title="k-external-small" class="jive-link-external-small" href="http://wiki.servicenow.com/index.php?title=Auto-Complete_for_Reference_Fields#Contains_Auto-Complete_Search" rel="nofollow" target="_blank"&gt;Auto-Complete for Reference Fields - ServiceNow Wiki&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;Scroll down to the very bottom: Contains Auto Complete Search and follow the instructions to update the User Preferences table&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Part 2:&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Also, you'll want to check the security rules for the table you are doing a look up on. I was able to use the reference field as an Admin. But when i impersonated a regular user, I wasn't able to see the values? Why you ask? Because the 'read' security rule for the table i was referencing had a role associated with it. Not good.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;In my frustration, I mean example, I created a new table which pulls in data from another data source. It has over 3500 records. I wanted the user to be able to go to the reference field and begin typing any value and the reference field would auto-magically list all references w/ the string they typed.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Our of frustration, I stumbled across the auto-complete wiki page above and tried the steps in the last section. I created a new record in the user preferences table and whola, it worked. But as stated, I had to adjust the 'read' security rule for my new created table.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Good luck! &lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 02 Sep 2015 18:32:09 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-do-i-change-the-type-ahead-search-from-quot-starts-with-quot/m-p/1916280#M573206</guid>
      <dc:creator>matthew_magee1</dc:creator>
      <dc:date>2015-09-02T18:32:09Z</dc:date>
    </item>
    <item>
      <title>Re: How do I change the type ahead search from "starts with" to contains?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-do-i-change-the-type-ahead-search-from-quot-starts-with-quot/m-p/1916281#M573207</link>
      <description>&lt;P&gt;https://docs.servicenow.com/administer/field_administration/task/t_ContainsAutoCompleteSearch.html&lt;/P&gt;
&lt;P&gt;https://docs.servicenow.com/administer/field_administration/concept/c_AutoCompleteForReferenceFields.html&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2019 13:32:32 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-do-i-change-the-type-ahead-search-from-quot-starts-with-quot/m-p/1916281#M573207</guid>
      <dc:creator>MGanon</dc:creator>
      <dc:date>2019-08-13T13:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: How do I change the type ahead search from "starts with" to contains?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-do-i-change-the-type-ahead-search-from-quot-starts-with-quot/m-p/1916282#M573208</link>
      <description>&lt;P&gt;The https://docs.servicenow.com/bundle/madrid-platform-administration/page/administer/field-administration/concept/c_AutoCompleteForReferenceFields.html#t_ContainsAutoCompleteSearch document seems to discourage using a CONTAINS auto-correct query. It appears that, since around Helsinki, ServiceNow sets the system to&amp;nbsp;the STARTSWITH query for reference fields with the&amp;nbsp;&lt;SPAN class="keyword parmname" style="margin: 0px; padding: 0px; outline: 0px; text-align: left; color: #161b1c; text-transform: none; text-indent: 0px; letter-spacing: normal; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; white-space: normal; box-sizing: border-box; orphans: 2; background-color: transparent; -webkit-text-stroke-width: 0px;"&gt;glide.ui.ref_ac.startswith&lt;/SPAN&gt; system property then requiring a user preference for each reference field of each table. Am I reading this correctly?&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2019 18:41:44 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-do-i-change-the-type-ahead-search-from-quot-starts-with-quot/m-p/1916282#M573208</guid>
      <dc:creator>MGanon</dc:creator>
      <dc:date>2019-08-14T18:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: How do I change the type ahead search from "starts with" to contains?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-do-i-change-the-type-ahead-search-from-quot-starts-with-quot/m-p/1916283#M573209</link>
      <description>&lt;P&gt;Thanks &lt;SN-MENTION class="sn-mention" table="live_profile" sysid="ed701aa9db581fc09c9ffb651f9619e3"&gt;@Fernando90&lt;/SN-MENTION&gt;, the "Log out and log back" saved me some time!&lt;/P&gt;</description>
      <pubDate>Fri, 23 Oct 2020 12:42:53 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-do-i-change-the-type-ahead-search-from-quot-starts-with-quot/m-p/1916283#M573209</guid>
      <dc:creator>Adil ELACHIQI1</dc:creator>
      <dc:date>2020-10-23T12:42:53Z</dc:date>
    </item>
  </channel>
</rss>

