<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Use customPickerField with googleMaps</title><link>https://community.appian.com/discussions/f/new-to-appian/39672/use-custompickerfield-with-googlemaps</link><description>Hello, I am trying to implement a custompickerField, but I still don&amp;#39;t understand very well how the suggestFunction and selectedLabels work since I have my DP_addressSugestion rule that receives the address and through the Google Maps API it already returns</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Use customPickerField with googleMaps</title><link>https://community.appian.com/thread/151338?ContentTypeID=1</link><pubDate>Fri, 05 Sep 2025 21:24:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:82242a36-3e03-4811-ad3d-c3916f0039ea</guid><dc:creator>AlexanderFlores</dc:creator><description>&lt;p&gt;No problem. As the documentation says, suggestionFunction requires a function that executes a filtering or search rule for a certain array, and this function returns a datasubset with data and identifiers. In the case of Google Maps, this is much simpler since the API does the filtering for you, so you don&amp;#39;t need to do much work. I&amp;#39;ll leave the code for the ruleExpression and the interface.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!addressSugestion: rule!DP_AddressGoogleMaps(
    address: ri!address,
    latitud: - 9.5,
    longitud: - 75
  ),
  if(
    local!addressSugestion.success,
    a!dataSubset(
      data: a!forEach(
        items: local!addressSugestion.result.places,
        expression: index(fv!item, &amp;quot;description&amp;quot;, null)
      ),
      identifiers: a!forEach(
        items: local!addressSugestion.result.places,
        expression: index(fv!item, &amp;quot;description&amp;quot;, null)
      ),
      
    ),
    a!dataSubset(data: {}, identifiers: {}, totalCount: 0)
  )
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!pickerFieldCustom(
      label: &amp;quot;Direccion Asistencia&amp;quot;,
      suggestFunction: rule!DP_addressSugestion(address: _),
      selectedLabels: local!origin,
      value: local!origin,
      saveInto: { local!origin },
      maxSelections: 1
    )&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use customPickerField with googleMaps</title><link>https://community.appian.com/thread/151330?ContentTypeID=1</link><pubDate>Fri, 05 Sep 2025 16:38:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a17775f7-b210-4340-9b35-97f37faf4fc1</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Can you share any details of what the issue ended up being, and what you did to fix it, for other users finding this thread in the future with similar issues?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use customPickerField with googleMaps</title><link>https://community.appian.com/thread/151329?ContentTypeID=1</link><pubDate>Fri, 05 Sep 2025 15:28:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e21d0052-5158-4055-8147-fcacf22e68ef</guid><dc:creator>AlexanderFlores</dc:creator><description>&lt;p&gt;Hi everyone, I solved by myself, thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use customPickerField with googleMaps</title><link>https://community.appian.com/thread/151318?ContentTypeID=1</link><pubDate>Fri, 05 Sep 2025 06:35:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c704078f-2f58-44d6-85d7-25262ac32fd6</guid><dc:creator>Harsha Sharma</dc:creator><description>&lt;p&gt;Your suggest function configuration looks off. Can you refer to a example pattern &lt;a href="https://docs.appian.com/suite/help/25.3/recipe-configure-an-array-picker.html"&gt;here&lt;/a&gt; and make similar changes. Then share if you get stuck somehwhere!&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use customPickerField with googleMaps</title><link>https://community.appian.com/thread/151317?ContentTypeID=1</link><pubDate>Fri, 05 Sep 2025 06:27:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d94a1fc3-5873-4101-a803-b36e041169f2</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Can you describe what you expect the code to do, and what it is actually doing?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use customPickerField with googleMaps</title><link>https://community.appian.com/thread/151316?ContentTypeID=1</link><pubDate>Fri, 05 Sep 2025 05:38:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:eae241db-0866-405c-8ccc-a4a55c1fdb14</guid><dc:creator>AlexanderFlores</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!pickerFieldCustom(
      label: &amp;quot;pon tu direccion papi&amp;quot;,
      value: local!origin,
      saveInto: local!origin,
      suggestFunction: rule!DP_addressSugestion(
        address: local!origin
      ),
      selectedLabels: local!origin,
      maxSelections: 1
    ),&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Here is my pickerField code&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/62/pastedimage1757050674620v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;and in the image there is the result of my suggestionFunction&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use customPickerField with googleMaps</title><link>https://community.appian.com/thread/151315?ContentTypeID=1</link><pubDate>Fri, 05 Sep 2025 05:36:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e6bc8055-c2dc-4c86-b59f-88cd0d00fbc8</guid><dc:creator>Harsha Sharma</dc:creator><description>&lt;p&gt;Are you getting any error? Also can you share the picker field code as well?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>