<?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>pickerFieldCustom: selected value is NOT staying</title><link>https://community.appian.com/discussions/f/new-to-appian/34108/pickerfieldcustom-selected-value-is-not-staying</link><description>Hi, 
 I am using below code in my interface where I am using pickerFieldCustom. Also, I am sharing my expression rule. 
 The issue which I am facing: After search with a certain text, I am able to get the result into the picker control, but it is disappearing</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: pickerFieldCustom: selected value is NOT staying</title><link>https://community.appian.com/thread/148717?ContentTypeID=1</link><pubDate>Thu, 05 Jun 2025 13:13:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:554a95d6-b7e8-496d-aa8b-27c75df17cdb</guid><dc:creator>gauravp915957</dc:creator><description>&lt;p&gt;hi&amp;nbsp;&lt;a href="/members/nasirs4970"&gt;nasirs4970&lt;/a&gt;&amp;nbsp; : i am facing the same error &amp;quot;showcase the selected identifier in the picker field&amp;quot;. In your selectedLabels&amp;nbsp; code what is local!QuestionDetails object and how this object is having value?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pickerFieldCustom: selected value is NOT staying</title><link>https://community.appian.com/thread/129977?ContentTypeID=1</link><pubDate>Thu, 22 Feb 2024 15:54:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:55b90cd3-6999-436f-b1f9-6dc90dd129c7</guid><dc:creator>swapnar6405</dc:creator><description>&lt;p&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pickerFieldCustom: selected value is NOT staying</title><link>https://community.appian.com/thread/129976?ContentTypeID=1</link><pubDate>Thu, 22 Feb 2024 15:54:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c543ed92-317b-483d-8871-831b73042519</guid><dc:creator>swapnar6405</dc:creator><description>&lt;p&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pickerFieldCustom: selected value is NOT staying</title><link>https://community.appian.com/thread/129831?ContentTypeID=1</link><pubDate>Wed, 21 Feb 2024 08:45:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2614fc5b-e4dd-4d67-b052-8ce1b9f1cd37</guid><dc:creator>nasirs4970</dc:creator><description>&lt;p&gt;Hi &lt;a class="internal-link view-user-profile" href="/members/swapnar6405"&gt;swapnar6405&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;As Stefan explained, your final data subset does not define the identifiers which the picker field requires. and also after defining the Identifier as per your code, it will showcase the selected identifier in the picker field, &lt;br /&gt;you need to get the name based on the selected identifier. you can achieve it with the help of the index and the whercontain functions&lt;br /&gt;this is an SS&amp;nbsp; of a picker field.&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/62/pastedimage1708504642910v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;you can also go through this Documentation:-&lt;a href="https://docs.appian.com/suite/help/23.4/recipe-configure-an-array-picker-with-a-show-all-option.html"&gt;docs.appian.com/.../recipe-configure-an-array-picker-with-a-show-all-option.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pickerFieldCustom: selected value is NOT staying</title><link>https://community.appian.com/thread/129829?ContentTypeID=1</link><pubDate>Wed, 21 Feb 2024 07:31:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e4a13c36-1079-4025-b308-5ab5b024297b</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;This might be because your final datasubset does not define the identifiers which the picker field requires.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pickerFieldCustom: selected value is NOT staying</title><link>https://community.appian.com/thread/129819?ContentTypeID=1</link><pubDate>Wed, 21 Feb 2024 03:13:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:832c9b7d-77e4-4b45-ac54-799796452881</guid><dc:creator>SRINIVAS M</dc:creator><description>&lt;h4&gt;Interface with Picker Field Custom&lt;/h4&gt;
&lt;p&gt;a!localVariables(&lt;br /&gt; local!pickedName,&lt;br /&gt; {&lt;br /&gt; a!pickerFieldCustom(&lt;br /&gt; label: &amp;quot;Name&amp;quot;,&lt;br /&gt; maxSelections: 1,&lt;br /&gt; suggestFunction: rule!TestExpression(search: _),&lt;br /&gt; selectedLabels: if(isnull(local!pickedName), {}, index(local!pickedName, &amp;quot;label&amp;quot;, {})),&lt;br /&gt; value: local!pickedName,&lt;br /&gt; saveInto: a!save(local!pickedName, fv!selection)&lt;br /&gt; )&lt;br /&gt; }&lt;br /&gt;)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="text-decoration:underline;"&gt;Below is a template assuming you&amp;#39;re querying an entity for names.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;a!localVariables(&lt;br /&gt; local!data: a!queryEntity(&lt;br /&gt; entity: cons!Employee,&lt;br /&gt; query: a!query(&lt;br /&gt; logicalExpression: a!queryLogicalExpression(&lt;br /&gt; operator: &amp;quot;AND&amp;quot;,&lt;br /&gt; filters: {&lt;br /&gt; a!queryFilter(&lt;br /&gt; field: &amp;quot;name&amp;quot;,&lt;br /&gt; operator: &amp;quot;includes&amp;quot;,&lt;br /&gt; value: ri!search&lt;br /&gt; )&lt;br /&gt; },&lt;br /&gt; ignoreFiltersWithEmptyValues: true&lt;br /&gt; ),&lt;br /&gt; pagingInfo: a!pagingInfo(startIndex: 1, batchSize: 10)&lt;br /&gt; ),&lt;br /&gt; fetchTotalCount: false&lt;br /&gt; ).data,&lt;br /&gt; map(&lt;br /&gt; a!forEach(&lt;br /&gt; items: local!data,&lt;br /&gt; expression: {&lt;br /&gt; id: fv!item.id,&lt;br /&gt; label: fv!item.name&lt;br /&gt; }&lt;br /&gt; )&lt;br /&gt; )&lt;br /&gt;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>