<?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>New value add to custom picker field</title><link>https://community.appian.com/discussions/f/user-interface/40261/new-value-add-to-custom-picker-field</link><description>Hi Everyone, I want to add new value using custom picker field . Let&amp;#39;s say , I have picker field name country and its having all country but not &amp;quot;XYZ&amp;quot;. So how can we add it?</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: New value add to custom picker field</title><link>https://community.appian.com/thread/153957?ContentTypeID=1</link><pubDate>Fri, 13 Mar 2026 10:18:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0f202c40-0930-4638-9be8-3c1bee233f25</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Find a solution in my blog post.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://appian.rocks/2022/12/22/create-new-items-using-a-custom-picker/"&gt;appian.rocks/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: New value add to custom picker field</title><link>https://community.appian.com/thread/153923?ContentTypeID=1</link><pubDate>Wed, 11 Mar 2026 06:43:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:eaa21218-9a4f-4dfa-a7b2-0971b4dc2c7a</guid><dc:creator>Shubham Aware</dc:creator><description>&lt;p&gt;For record type, use selectedLabels: local!selected.name.&lt;br /&gt;For better understandign can you please share full code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: New value add to custom picker field</title><link>https://community.appian.com/thread/153911?ContentTypeID=1</link><pubDate>Tue, 10 Mar 2026 12:16:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6efbef42-47f2-4eba-9855-cba62d89bc15</guid><dc:creator>romav295036</dc:creator><description>&lt;p&gt;I understand your code.I try to map with record type to save the new value or saved one value.&lt;br /&gt;then in picker field the first alphabet is only visible.&lt;br /&gt;For example, add &amp;quot;xyz&amp;quot; and once select then &amp;quot;x&amp;quot; is visible.&lt;br /&gt;Not sure why this is happening.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: New value add to custom picker field</title><link>https://community.appian.com/thread/153909?ContentTypeID=1</link><pubDate>Tue, 10 Mar 2026 10:15:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b5aabe4e-4a7f-4dd5-9100-cec714eb70f0</guid><dc:creator>Shubham Aware</dc:creator><description>&lt;p&gt;Have you tried the above code as-is to understand how it works? &lt;br /&gt;Are you getting an issue with my exact code?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: New value add to custom picker field</title><link>https://community.appian.com/thread/153908?ContentTypeID=1</link><pubDate>Tue, 10 Mar 2026 08:06:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:79f1950f-6496-4630-8063-0a45540d22e3</guid><dc:creator>romav295036</dc:creator><description>&lt;p&gt;Once the new country i am trying to add then i receive &amp;quot;&lt;span&gt;picker field label length error&amp;quot;.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: New value add to custom picker field</title><link>https://community.appian.com/thread/153896?ContentTypeID=1</link><pubDate>Mon, 09 Mar 2026 17:09:04 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8b422cb7-fcc6-42fc-975a-38690c6a15e9</guid><dc:creator>Swathimdas</dc:creator><description>&lt;p&gt;Just adding another version on top of Shubham Version, so that it gives clear understanding to the user that new value is being added. You can modify the values in the saveInto of the pickerfield based on your requirement.&lt;br /&gt;&lt;br /&gt;PickerField:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!matches: where(
    a!forEach(
      items: ri!labels, 
      expression: search( ri!filter, fv!item)
    )
  ),
  a!dataSubset(
    data:  if(
      and(
        contains(
          trim(lower(ri!identifiers)),
          trim(lower(ri!filter))
        )
      ),
      index( ri!identifiers, local!matches),
      append(
        touniformstring(
          index(
            { ri!identifiers },
            local!matches,
            {}
          )
        ),
        ri!filter &amp;amp; &amp;quot; (Add new)&amp;quot;
      )
    ),
    identifiers: if(
      and(
        contains(
          trim(lower(ri!identifiers)),
          trim(lower(ri!filter))
        )
      ),
      index( ri!identifiers, local!matches),
      append(
        touniformstring(
          index(
            { ri!identifiers },
            local!matches,
            {}
          )
        ),
        ri!filter
      )
    )
  )
)
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;UI Preview:&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/13/pastedimage1773076135797v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: New value add to custom picker field</title><link>https://community.appian.com/thread/153893?ContentTypeID=1</link><pubDate>Mon, 09 Mar 2026 16:59:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:704fb14c-b5f2-4c4a-b4ba-a934f4a4300f</guid><dc:creator>Shubham Aware</dc:creator><description>&lt;p&gt;I tried to mimic this scenario&lt;br /&gt;&lt;br /&gt;Interface -&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!countries: { &amp;quot;USA&amp;quot;, &amp;quot;India&amp;quot;, &amp;quot;Canada&amp;quot; },
  local!selected: null,
  a!pickerFieldCustom(
    label: &amp;quot;Country&amp;quot;,
    suggestFunction: rule!POC_CountrySuggest(
      filter: _,
      labels: local!countries,
      identifiers: local!countries
    ),
    value: local!selected,
    saveInto: local!selected,
    selectedLabels: local!selected
  )
)&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Suggestion Function -&amp;nbsp;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!matches: where(search(ri!filter, ri!labels)),
  if(
    length(local!matches) &amp;gt; 0,
    a!dataSubset(
      data: index(ri!labels, local!matches),
      identifiers: index(ri!identifiers, local!matches)
    ),
    a!dataSubset(
      data: ri!filter,
      identifiers: ri!filter
    )
  )
)
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>