<?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 Re: Combine Script Plus ac columns in reference field syntax in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/combine-script-plus-ac-columns-in-reference-field-syntax/m-p/3212119#M1188746</link>
    <description>&lt;P&gt;These are not combined - the Reference Qualifier is fine, and the other things you mention are added to the Attributes field.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BradBowman_0-1742404437089.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/428399i2F0BDEBFDD08EC81/image-size/medium?v=v2&amp;amp;px=400" alt="BradBowman_0-1742404437089.png" title="BradBowman_0-1742404437089.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Mar 2025 17:14:03 GMT</pubDate>
    <dc:creator>Brad Bowman</dc:creator>
    <dc:date>2025-03-19T17:14:03Z</dc:date>
    <item>
      <title>Combine Script Plus ac columns in reference field syntax</title>
      <link>https://www.servicenow.com/community/developer-forum/combine-script-plus-ac-columns-in-reference-field-syntax/m-p/3212089#M1188739</link>
      <description>&lt;P&gt;Is there a way to combine a script call and the ref_ac columns attribute on a reference field?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Current reference qual:&amp;nbsp;javascript&amp;amp;colon;'sys_idIN' + getPortfolioProgramIds(current.portfolio, current.getTableName());&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to add an additional column from the table this is pointing at, which would be something like this:&amp;nbsp;&lt;BR /&gt;ref_ac_columns=u_sub_category, ref_ac_columns_search=true,ref_auto_completer=AJAXTableCompleter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What would be the correct way to have the syntax of both when combined into the reference qual?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The desired outcome is that in the reference field I can display both columns when searching.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(The script above returns programs, and the subcategory field is part of the same record on the same form)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Mar 2025 17:08:08 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/combine-script-plus-ac-columns-in-reference-field-syntax/m-p/3212089#M1188739</guid>
      <dc:creator>anfield</dc:creator>
      <dc:date>2025-03-19T17:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: Combine Script Plus ac columns in reference field syntax</title>
      <link>https://www.servicenow.com/community/developer-forum/combine-script-plus-ac-columns-in-reference-field-syntax/m-p/3212119#M1188746</link>
      <description>&lt;P&gt;These are not combined - the Reference Qualifier is fine, and the other things you mention are added to the Attributes field.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BradBowman_0-1742404437089.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/428399i2F0BDEBFDD08EC81/image-size/medium?v=v2&amp;amp;px=400" alt="BradBowman_0-1742404437089.png" title="BradBowman_0-1742404437089.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Mar 2025 17:14:03 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/combine-script-plus-ac-columns-in-reference-field-syntax/m-p/3212119#M1188746</guid>
      <dc:creator>Brad Bowman</dc:creator>
      <dc:date>2025-03-19T17:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: Combine Script Plus ac columns in reference field syntax</title>
      <link>https://www.servicenow.com/community/developer-forum/combine-script-plus-ac-columns-in-reference-field-syntax/m-p/3212121#M1188748</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/308112"&gt;@anfield&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;both are different things.&lt;/P&gt;
&lt;P&gt;ref qualifier helps to restricts&lt;/P&gt;
&lt;P&gt;to add additional column add this and use this syntax&lt;/P&gt;
&lt;P&gt;ref_ac_columns=u_sub_category&lt;STRONG&gt;;fieldName&lt;/STRONG&gt;, ref_ac_columns_search=true,ref_auto_completer=AJAXTableCompleter.&lt;/P&gt;
&lt;P&gt;If my response helped please mark it correct and close the thread so that it benefits future readers.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Mar 2025 17:11:15 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/combine-script-plus-ac-columns-in-reference-field-syntax/m-p/3212121#M1188748</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2025-03-19T17:11:15Z</dc:date>
    </item>
    <item>
      <title>Re: Combine Script Plus ac columns in reference field syntax</title>
      <link>https://www.servicenow.com/community/developer-forum/combine-script-plus-ac-columns-in-reference-field-syntax/m-p/3212127#M1188749</link>
      <description>&lt;P&gt;Ok. How can i achieve my goal? I want to leave the script as is, but have 2 columns in the reference field displayed&lt;/P&gt;</description>
      <pubDate>Wed, 19 Mar 2025 17:14:00 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/combine-script-plus-ac-columns-in-reference-field-syntax/m-p/3212127#M1188749</guid>
      <dc:creator>anfield</dc:creator>
      <dc:date>2025-03-19T17:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: Combine Script Plus ac columns in reference field syntax</title>
      <link>https://www.servicenow.com/community/developer-forum/combine-script-plus-ac-columns-in-reference-field-syntax/m-p/3212131#M1188751</link>
      <description>&lt;P&gt;Missed that part. Got it thanks&lt;/P&gt;</description>
      <pubDate>Wed, 19 Mar 2025 17:17:49 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/combine-script-plus-ac-columns-in-reference-field-syntax/m-p/3212131#M1188751</guid>
      <dc:creator>anfield</dc:creator>
      <dc:date>2025-03-19T17:17:49Z</dc:date>
    </item>
  </channel>
</rss>

